searchBuilder.columns
Restrict which columns can be filtered on.
Please note - this property requires the SearchBuilder extension for DataTables.
Description
This option is an alias to searchBuilder.columns
, which should be preferred when using DataTables 2+. It can be used to configure SearchBuilder regardless of how the panes are inserted into the document (layout
or searchBuilder
).
Please refer to the documentation for searchBuilder.columns
for full details of this option.
Type
column-selector
number[]
of the columns that can be filtered. This accepts all of the options of column-selector
such as class name selector, jQuery pseudo selects and column index selectors.
Example
Allow three columns to be filtered on:
new DataTable('#myTable', {
searchBuilder: {
columns: [1, 2, 3]
},
layout: {
top1: 'searchBuilder'
}
});