Documentation

filter

filters the component

void filter(template|function text,string value,boolean preserve);

Parameters

texttemplate|functiona template of filtered value or function
valuestringthe filtering mask
preservebooleanif set to true, each next filtering criteria will be applied to the already filtered list

See also

Example

//filters all fields with 'abc' 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;
});

Back to top