{hero}

language.searchBuilder.conditions

Since: SearchBuilder 1.0.0

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

Description

This option allows custom conditions to have their names customised.

This object contains the following properties, whose value is a further object of the type language.searchBuilder.conditions[type]. More details for the types can be found at columns.type.

  • string - Condition names for string and html conditions.
  • date - Condition names for date conditions.
  • number - Condition names for simple numbers, and formatted numbers, including html with no formatting
  • moment - Condition names for moment conditions.
  • array - Condition names for array conditions

More details on the structure that is used can be found at language.searchBuilder.conditions[type].

Type

Object

Description:

An object that contains condition names for each of the built in DataTables types as defined in columns.type along with a moment type for formatted dates, an array type for columns using data in an array type format and any other custom types that may exist on the table. These strings are passed through an i18n() function before being placed in the condition select.

Default

  • Value: Object

The default value for the language.searchBuilder.conditions option is an object with a property for each of the built in DataTables types as defined in columns.type along with a moment type for formatted dates, an array type for columns using data in an array type format and any other custom types that may exist on the table. Each property in turn is an object with key value pairs to represent the conditions in the condition select element. The key here is the condition name and the value is the string that is to be used to represent it.

Related

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