{hero}

searchPanes.threshold

Since: SearchPanes 1.0.0

Set the minimum ratio of unique values to total values needed in a column to display it's pane.
Please note - this property requires the SearchPanes extension for DataTables.

Description

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

Type

Decimal

Description:

By setting the searchPanes.threshold option to a decimal value between 0 and 1 it is possible to alter when the panes are automatically displayed.

Default

  • Value: 0.6

The default value for the searchPanes.threshold parameter is 0.6.

Example

Change the threshold of the uniqueness ratio:

new DataTable('#myTable', {
	layout: {
		top1: 'searchPanes'
	},
	searchPanes: {
		threshold: 0.4
	}
});

Related

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