filters List by the provided parameters
key | string|function | the name of the property or of a custom filtering method |
value | string | the value which will be used for filtering |
//show all items where Publisher == "Test"
myList.filter("#Publisher#","Test");
//show all items where Publisher starts from "Test"
myList.filter(function(obj,value){
if (obj.Publisher.indexOf(value)==0) return true;
return false;
},"Test");
Back to top