{hero}

searchBuilder.conditions

Since: SearchBuilder 1.0.0

Define custom conditions for SearchBuilder.
Please note - this property requires the SearchBuilder extension for DataTables.

Description

This parameter allows custom conditions to be defined for SearchBuilder (based on data type and the condition itself).

Note: Please also not that custom conditions are not supported when the serverSide option is set to true!

Examples

There are two examples that create custom conditions using initialisation options. They both show how to add a custom condition to the num column type, but the process is the same for other column types.

There is also an example that shows how to use a plug-in to add a custom condition.

Type

Object

Description:

This is a 2D object, keyed first by the data type that the condition should apply to and then by the condition itself. The condition object must have the structure defined by SearchBuilder.Condition.

Default

  • Value: Object

By default, SearchBuilder populates this object with its own predefined search conditions for the various data types built in to DataTables.

Related

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