Topic: Datable not working in JQuerry 4.7.5
I have made a page with a datatable, and initialized it with a custom init JS so that it is localised (texts for searc, pagination and such are in french). It works perfectly all right with 4.7.4.
I installed 4.7.5, I copy pasted this page in this new version without changing anything and it doesn't work anymore : there's no "search", no pagination, no checkboxes, no icons to order the columns : it's as if the page cannot find the addons anymore.
I have checked that the datatable and datatable_select are on the correct folders under css/addons and js/addons.
Of course, the page refers to these addons with the correct path.
Since I use the gulp version, I also checked that the mdb.scss and modules.js files do load the datatables and datatables_select options.
So, what's going on ?
it's weird because we didn't change anything with DataTable code js or CSS with the latest release so I have no idea it's not working. Are you sure there are everything correct? I checked the latest package version form our server and everything is working well.
I just made the test.
I unzipped the MDB-Extended_4.7.5.zip file. I replaced the "style.css" file with my own I added my custom js.file I checked that the datatable-select files were in the addons subfolders of the css and js folders I copy pasted my html page (which works perfectly well under 4.7.4), and I got the same results as explained above : no "search", no pagination, etc...
I can send you my files if you want to check them, if you want (please give me an e-mail to do so, or send me a mail through my account.
We don't contain CSS and JS code of DataTable in mdb.css and mdb.js ( even in minified version ) by default. If it has been there it was our mistake.
If you would like to work with data table you have to add extra paths to CSS and JS which contains data table code. Like that :
<link rel="stylesheet" href="css/addons/datatables.css"> <script src="js/addons/datatables.js"></script>
or you can use datatable.scss in scss/addons and js/modules.js where you can uncomment path to datatable.js and it will be compiled to mdb.js. ( I'm talking about GULP version where you have to compiled/minified on your own )
- User: Free
- Premium support: No
- Technology: jQuery
- MDB Version: 4.7.5
- Device: PC
- Browser: Firefox
- OS: Windows10 x64
- Provided sample code: No
- Provided link: No