searchBuilder.preDefined.criteria.origData
The original data point that is used for filtering, not necessarily the column title.
Please note - this property requires the SearchBuilder extension for DataTables.
Description
This value is only used when serverSide
processing is enabled. This value is the original field name and is used within the server side integration to select the correct field.
For more information on preDefined searches please refer to the searchBuilder.preDefined
option or the manual page.
Type
string
- Description:
The original column data point key used for this column. This value will be undefined if using dom sourced or array based data.
Default
- Value:
undefined
Example
Defining a preDefined criteria for the Office column:
$('#example').DataTable( {
dom: 'Qlfrtip',
searchBuilder: {
preDefined: {
criteria:[
{
condition: '=',
data: 'First Name',
origData: 'first_name'
value: ['Airi']
}
],
logic: 'AND'
}
}
});
Related
The following options are directly related and may also be useful in your application development.