{hero}

language.searchBuilder.conditions.array

Since: SearchBuilder 1.0.0

Set the condition names for columns that use arrays.
Please note - this property requires the SearchBuilder extension for DataTables.

Description

This object sets the text for the condition names in the condition select element. The defaults for each language option is listed below.

  • contains: 'Contains'
  • empty: 'Empty'
  • equals: 'Equals'
  • not: 'Not'
  • notEmpty: 'Not Empty'
  • without: 'Without'

Type

string | object

Description:

language.searchBuilder.conditions.array changes what will be displayed for the SearchBuilder's condition select element for columns that use array like data.

Note that columns of this type are not identified automatically and must be user defined using the columns.type option.

Default

  • Value: object

Example

Change message for SearchBuilder Condition:

new DataTable('#myTable', {
	language: {
		searchBuilder: {
			conditions: {
				array: {
					contains: 'Contains',
					empty: 'Empty',
					equals: 'Equals',
					not: 'Not',
					notEmpty: 'Not Empty',
					without: 'Without'
				}
			}
		}
	},
	layout: {
		top1: 'searchBuilder'
	}
});

Related

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