{hero}

language.searchBuilder.conditions.moment

Since: SearchBuilder 1.0.0

Set the condition names for the moment 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.moment changes what will be displayed for the SearchBuilder's condition select element for moment conditions.

Default

  • Value: object

Example

Change message for SearchBuilder Condition:

$(document).ready(function() {
	$('#example').DataTable( {
		language: {
			searchBuilder: {
				conditions :{
                    moment: {
                        after: 'After',
                        before: 'Before',
                        between: 'Between',
						empty: 'Empty',
                        equals: 'Equals',
                        not: 'Not',
                        notBetween: 'Not Between',
                        notEmpty: 'Not Empty'
                    }
                }
			}
		},
		dom: 'Qlfrtip',
	});
});

Related

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