type

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

string type;

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

    var data = new webix.DataCollection({
      data:grid_data
    });
     
    webix.ui({
      view:"filter",
      type:"text",
      field:"title",
      data: data,
      on:{
        onChange(){
          const filter = this.getFilterFunction();
          data.filter(obj => filter(obj));
          console.log(data.data.order);
        }
      }
    });


    Default value:

    "number"

    Related samples

    See also
  • Articles
  • Back to top
    If you have not checked yet, be sure to visit site of our main product Webix javascript ui framework and page of ui layout product.