filter

filters the component

void filter(template|function text, [string value,boolean preserve] );
text
template|functiona template with the filtered value or a function value
stringthe filtering mask preserve
booleanif set to true, each next filtering criteria will be applied to the already filtered list

Example

// filters all fields with "abc" value in the "text" property
// using a template
list.filter("#text#","abc")
 
// using a function
list.filter(function(obj){
    return obj.text.toString().indexOf("abc") != -1;
});
 
// unfilters the dataset
list.filter();

Related samples

Details

When called without parameters, the method unfilters the dataset.

See also
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix open source html5 framework and page of javascript menu library product.