{hero}

searchBuilder.preDefined.criteria.data

Since: SearchBuilder 1.0.0

Define the data point to be selected.
Please note - this property requires the SearchBuilder extension for DataTables.

Description

This value defines which column the criteria will apply to, identified by its title. If the title has been change with columns.title, then the amended value must be used.

When using SSP, the searchBuilder.preDefined.criteria.origData property must also be set so that the server-side script knows which field to filter on.

For more information on preDefined searches please refer to the searchBuilder.preDefined option or the manual page.

Type

number

Description:

The title of the data point to be selected.

Default

  • Value: undefined

Example

Defining a preDefined criteria for the Office column:

$('#example').DataTable( {
	dom: 'Qlfrtip',
	searchBuilder: {
		preDefined: {
			criteria:[
				{
					condition: '=',
					data: 'Office',
					value: ['Edinburgh']
				}
			],
			logic: 'AND'
		}
	}
});

Related

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