{hero}

searchPanes.columns

Since: SearchPanes 1.0.0

Select which columns should be considered when displaying panes.
Please note - this property requires the SearchPanes extension for DataTables.

Description

This option is an alias to searchPanes.columns, 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.columns for full details of this option.

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'
	},
	searchPanes: {
		columns: [1, 3, 5]
	}
});

Related

The following options are directly related and may also be useful in your application development.