{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'
  • contains: 'Contains'
  • endsWith: 'Ends 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:

$(document).ready(function() {
	$('#example').DataTable( {
		language: {
			searchBuilder: {
				conditions :{
                    string: {
                        contains: 'Contains',
                        empty: 'Empty',
                        endsWith: 'Ends With',
                        equals: 'Equals',
                        not: 'Not',
                        notEmpty: 'Not Empty',
                        startsWith: 'Starts With',
                    }
                }
			}
		},
		dom: 'Qlfrtip',
	});
});

Related

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