JavaScript/jQuery FilterBuilder - customOperations
Configures custom filter operations.
calculateFilterExpression
Specifies a function that returns a filter expression for this custom operation.
A FilterBuilder field's value.
The field's configuration.
A filter expression with filter operations supported by the DataSource.
These operations are: "!", "=", "<>", ">", ">=", "<", "<=", "startswith", "endswith", "contains", "notcontains", "and", "or".
this
keyword refers to the custom operation's configuration.See Also
customizeText
Customizes the field value's text representation.
Information about a FilterBuilder field.
The text to be displayed.
this
keyword refers to the custom operation's configuration.dataTypes
Specifies for which data types the operation is available by default.
Define this property to make the custom operation available for all fields of specific data types. You can also make the operation available for an individual field by including the operation's name in the field's filterOperations array.
editorTemplate
Specifies a custom template for the UI component used to edit the field value.
Name | Type | Description |
---|---|---|
field |
The field's configuration. |
|
setValue |
A method you should call to change the field value after the editor value changes. |
|
value | | | |
The editor's value. |
hasValue
Specifies whether the operation can have a value. If it can, the editor is displayed.
icon
Specifies the icon that should represent the filter operation.
This property accepts one of the following:
- The icon's URL
- The icon's name if the icon is from the DevExtreme icon library
- The icon's CSS class if the icon is from an external icon library (see External Icon Libraries)
- The icon in the Base64 format
- The icon in the SVG format. Ensure that the source is reliable.
If you have technical questions, please create a support ticket in the DevExpress Support Center.