All custom operations are configured in the customOperations array. Follow the steps below to declare an operation:
Express the operation through DataSource-compatible operations.
Filtering is implemented using the DataSource which supports only a limited set of filter operations. Use the calculateFilterExpression function to express your custom operation through these DataSource-compatible operations.
Customize the appearance.
Specify the caption and icon to be used for displaying the operation in the drop-down list. You can also customize the editor using the editorTemplate property and the value's text representation using the customizeText property.
Make the operation available for fields.
Set the dataTypes property to make the operation available for fields of specific data types. You can also make it available for an individual field by including the operation's name in the field's filterOperations array.