filters the component
text | template|function | a template of filtered value or function |
value | string | the filtering mask |
preserve | boolean | if set to true, each next filtering criteria will be applied to the already filtered list |
// filters the 'text' field with 'abc'
// using a template
list.filter('#text#',"abc")
// using a function
list.filter(function(obj){
return obj.text.toString().indexOf("abc") != -1;
});