searchPanes.columns
Select which columns should be considered when displaying panes.
Please note - this property requires the SearchPanes extension for DataTables.
Description
As standard, SearchPanes will consider all of the columns when creating searchPanes. When searchPanes.columns
is defined with an array of numbers, then only the columns with those indexes will be considered when creating panes. Note they still may not be displayed based upon the calculations of searchPanes.threshold
or columns.searchPanes.threshold
, but can be forced to show using columns.searchPanes.show
.
The searchPanes.columns
functionality is useful when wanting to restrict which columns will be considered when displaying panes. This may result in faster load times as there is not as much validation to be done.
Type
Array
- Description:
By setting the
searchPanes.columns
option to an array of integers, only the columns with index of those numbers will be considered when creating the searchPanes.
Default
- Value:
undefined
The default value for the searchPanes.columns
parameter is undefined
. When this default value is in place all of the columns will be considered when creating searchPanes.
Example
Specify columns for consideration::
new DataTable('#myTable', {
layout: {
top1: {
searchPanes: {
columns: [1, 3, 5]
}
}
}
});
Related
The following options are directly related and may also be useful in your application development.