{hero}

searchBuilder.conditions[type][cond].conditionName

Since: SearchBuilder 1.0.0

The value that is displayed in the condition select element.
Please note - this property requires the SearchBuilder extension for DataTables.

Description

This allows the display value of the condition to be set. The custom condition defined in the example will set a new Multiple Of condition in the built in type num's condition set.

More details on the structure that is used can be found at searchBuilder.conditions[type][cond]

The manual page for custom conditions covers in detail how this and the other values in this object come together to create a custom condition.

Note: Here the type in searchBuilder.conditions[type][cond].conditionName is the type for the column, for more details refer to columns.type.

Note: Please also not that custom conditions are not supported when the serverSide option is set to true.

Type

string

Description:

This is the string value that will be displayed in the condition select element to represent this condition.

Example

Define the display value to be shown in the condition select:

$('#example').DataTable( {
    dom: 'Qfrtip',
    searchBuilder: {
        conditions: {
            "num":{
                'multipleOf': {
                    conditionName: 'Multiple Of',
                    init: function(that, fn, preDefined = null){
                        ...
                    },
                    inputValue: function(el, value = null){
                        ...
                    },
                    isInputValid: function(el, that){
                        ...
                    },
                    search: function(value, comparison) {
                        ...
                    },
                }
            }
        }
    }
});

Related

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