{hero}

searchBuilder.depthLimit

Since: SearchBuilder 1.0.0

Impose a limit on the depth of the groups.
Please note - this property requires the SearchBuilder extension for DataTables.

Description

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

Types

integer

Description:

The value for how many layers deep a group can be at most.

boolean

Description:

When false, don't impose a limit on the depth of groups.

Examples

Setting the limit to 3:

new DataTable('#myTable', {
	searchBuilder: {
		depthLimit: 3
	},
	layout: {
		top1: 'searchBuilder'
	}
});

Never allow sub grouping:

new DataTable('#myTable', {
	searchBuilder: {
		depthLimit: 1
	},
	layout: {
		top1: 'searchBuilder'
	}
});