{hero}

searchBuilder.conditions[type][cond]

Since: SearchBuilder 1.0.0

The object structure for additional conditions for SearchBuilder.
Please note - this property requires the SearchBuilder extension for DataTables.

Description

This is useful as it allows custom conditions to be added to SearchBuilder should the standard ones not be enough. It also allows for the standard conditions to be removed or edited to fit your own needs. Here the type in searchBuilder.conditions[type][cond] is the type for the column, for more details refer to columns.type.

This object is used to represent a single condition. It is an object which contains 5 properties which define fully the behaviour of the condition. They are as follows

The standard conditions can be removed, edited or added to. The manual page for custom conditions covers this in detail.

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:

An object that contains the information necessary to add a single new condition.

Default

  • Value: object

Related

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