operators.date.custom.text String

The text displated in the operators drop down.

Example - set the operator

<div id="filter"></div>
<br /><br />
<script>
  var data = [
      { name: "Jane Doe", hireDate: new Date(2017,5,2) },
      { name: "John Doe", hireDate: new Date(2019,6,9) }
    ];

  var dataSource = new kendo.data.DataSource({
    data: data
  });

  $("#filter").kendoFilter({
    dataSource: dataSource,
    expressionPreview: true,
    fields: [
      { name: "hireDate", type:"date", label: "Hire Date", operators: {
          date:{
            customOperator:{
              text: 'Custom operator',
              handler: customOperatorHandler
            }
          }
        } },
      { name: "name", type:"string", label: "Name" }
    ]
  });

  function customOperatorHandler(itemValue, filterValue){
    return itemValue.getMonth() > filterValue.getMonth();
  }
</script>
In this article