searchPanes.collapse
Allow the SearchPanes to be collapsed.
Please note - this property requires the SearchPanes extension for DataTables.
Description
This option is an alias to searchPanes.collapse
, which should be preferred when using DataTables 2+. It can be used to configure SearchPanes regardless of how the panes are inserted into the document (layout
or searchPanes
).
Please refer to the documentation for searchPanes.collapse
for full details of this option.
Type
boolean
- Description:
By setting the
searchPanes.collapse
option tofalse
the searchpane will not be collapsible and the collapse button will not be shown at the top of the panes.
Default
- Value:
true
The default value for the searchPanes.collapse
parameter is true
, meaning that as standard the searchpanes are all collapsible.
Example
Don't allow SearchPanes to be collapsible:
new DataTable('#myTable', {
layout: {
top1: 'searchPanes'
},
searchPanes: {
collapse: false
}
});
Related
The following options are directly related and may also be useful in your application development.