I'm trying to migrate jQuery Datatable from On Prem 2013 to online, I'm gonna create SPFX application extension, where I insert the scripts in order, still datatable is undefined.
$.fn.dataTable is undefined
I'm using jQuery 1.11.1 and DataTables 1.10.4.
Loading jquery and other files like below in config.json
"externals": {
"jquery": "https://xxx.sharepoint.com/SiteAssets/FileLookup/jquery-1.11.1.min.js",
"datatables.net" : {
"path": "https://xxx.sharepoint.com/SiteAssets/FileLookup/jquery.dataTables.min.js",
"globalName": "jQuery",
"globalDependencies": [
"jquery"
]
},
"propertysearch": {
"path": "https://xx.sharepoint.com/SiteAssets/FileLookup/filesearch.js",
"globalName": "propertySearch",
"globalDependencies": [
"jquery",
"datatables.net"
]
}
},
Shed me some ideas