searchPanes.collapse
Allow the SearchPanes to be collapsed.
Please note - this property requires the SearchPanes extension for DataTables.
Description
As standard, SearchPanes will be collapsible. A button is shown on the control row above the SearchPane table and the right most button toggles the state of the pane from being collapsed to expanded.
If this option is set to false the panes will not be collapsible and the button will not be shown. It is possible to set this for specific columns using the columns.searchPanes.collapse
option, and the SearchPanes can be initialised in the collapsed state by using the searchPanes.initCollapsed
or columns.searchPanes.initCollapsed
options.
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: {
collapse: false
}
}
}
});
Related
The following options are directly related and may also be useful in your application development.