{hero}

language.searchBuilder.conditions.date

Since: SearchBuilder 1.0.0

Set the condition names for the date 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.

  • after: 'After'
  • before: 'Before'
  • between: 'Between'
  • empty: 'Empty'
  • equals: 'Equals'
  • not: 'Not'
  • notBetween: 'Not Between'
  • notEmpty: 'Not Empty'

Type

string | object

Description:

language.searchBuilder.conditions.date changes what will be displayed for the SearchBuilder's condition select element for date, moment and luxon conditions.

Default

  • Value: object

Example

Change message for SearchBuilder Condition:

new DataTable('#myTable', {
	language: {
		searchBuilder: {
			conditions: {
				date: {
					after: 'After',
					before: 'Before',
					between: 'Between',
					empty: 'Empty',
					equals: 'Equals',
					not: 'Not',
					notBetween: 'Not Between',
					notEmpty: 'Not Empty'
				}
			}
		}
	},
	layout: {
		top1: 'searchBuilder'
	}
});

Related

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