Hi Lars,
No problem! Here are a few examples which I use to test the plugin:
Load all data into the browser on startup:
{"serverSide":false}
Remember table state:
{"stateSave":true}
Define in which order areas are shown:
{"dom":"iptlfr"}
Turn off paging, load all data at one, set scroll bars:
{"paging": false,"serverSide":false,"info":false,"retrieve":true, "scrollY": "150px", "scrollCollapse": true,"scrollX":"0"}
Overwrite some plugin defaults:
{"pageLength":5,"stateSave":false,"bAutoWidth":true,"fixedColumns": true, "fixedHeader": true}
Add javascript function which sets color depending on content (more complex):
{ "paging":false, "serverSide":false, "fnRowCallback": "function(row, data, index) { if (data[1]=='Z 750 ABS') { jQuery(row).find('td:eq(1)').css('color','green'); } else { jQuery(row).find('td:eq(1)').css('color','red'); } }" }
>>> Your advanced settings MUST BE valid json! (no exceptions! use a validator!)
>>> You can use tabs and new lines to improve readability.
>>> Your advanced settings will overwrite plugin defaults if applicable.
>>> You should be able to use all available options, found here:
https://datatables.net/reference/option/
>>> For some options you need to install addtional extensions, found here:
https://datatables.net/extensions/index
I haven’t tested them all! ?? There are just too many combinations. The plugin installs extension Responsive by default. If you want to use other extensions, you need to install them manually.
If you have suggestions for improvement, I’m listening! ??
Best regards,
Peter