{hero}

language.searchBuilder.conditions.string

Since: SearchBuilder 1.0.0

Set the condition names for the string column type.
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.

  • equals: 'Equals'
  • not: 'Not'
  • startsWith: 'Starts With'
  • notStartsWith: 'Does Not Start With'
  • contains: 'Contains'
  • notContains: 'Does Not Contain'
  • endsWith: 'Ends With'
  • notEndsWith: 'Does Not End With'
  • empty: 'Empty'
  • notEmpty: 'Not Empty'

Type

string | object

Description:

language.searchBuilder.conditions.string changes what will be displayed for the SearchBuilder's condition select element for string and html conditions.

Default

  • Value: object

Example

Change message for SearchBuilder Condition:

new DataTable('#myTable', {
	language: {
		searchBuilder: {
			conditions: {
				string: {
					contains: 'Contains',
					empty: 'Empty',
					endsWith: 'Ends With',
					equals: 'Equals',
					not: 'Not',
					notContains: 'Does Not Contain',
					notEmpty: 'Not Empty',
					notEndsWith: 'Does Not End With',
					notStartsWith: 'Does Not Start With',
					startsWith: 'Starts With'
				}
			}
		}
	},
	layout: {
		top1: 'searchBuilder'
	}
});

Related

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