I am using jQuery DataTables.
I want to remove the search bar and footer (showing how many rows there are visible) that is added to the table by default. I just want to use this plugin for sorting, basically. Can this be done?
I am using jQuery DataTables.
I want to remove the search bar and footer (showing how many rows there are visible) that is added to the table by default. I just want to use this plugin for sorting, basically. Can this be done?
Check out http://www.datatables.net/examples/basic_init/filter_only.html for a list of features to show/hide.
What you want is to set "bFilter" and "bInfo" to false;
If you are using custom filter, you might want to hide search box but still want to enable the filter function, so
bFilter: false
is not the way. Usedom: 'lrtp'
instead, default is'lfrtip'
. Documentation: https://datatables.net/reference/option/domif you are using themeroller:
For DataTables >=1.10, use:
For DataTables <1.10, use:
or using pure CSS: