Since: SearchPanes 1.0.0

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


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.




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.


  • 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.


Specify columns for consideration::

new DataTable('#myTable', {
	layout: {
		top1: {
			searchPanes: {
				columns: [1, 3, 5]


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