mode

defines the type of data to which the filter will be applied to

mode;

Values

  • "text"
    will be applied to the "string" field type
  • "number"
    will be applied to the "number" field type
  • "date"
    will be applied to the "date" field type
  • Example

    webix.ui({
      view:"filter",
      mode:"text",
      field:"title",
      data: data,
      on:{
        onChange(){
          const filter = this.getFilterFunction();
          data.filter(obj => filter(obj));
        }
      }
    });


    Default value:

    "number"

    Related samples

    See also
  • Articles
  • Back to top