{hero}

searchBuilder.logic

Since: SearchBuilder 1.0.0

Set the default logic operator.
Please note - this property requires the SearchBuilder extension for DataTables.

Description

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

Type

string

Description:

The value for the default logic operator for groups, either AND or OR.

Example

Setting the default logic to 'OR':

new DataTable('#myTable', {
	layout: {
		top1: 'searchBuilder'
	},
	searchBuilder: {
		logic: 'OR'
	}
});