On datatable, can I use Find, based on multiple text inputs to be compared with multiple columns? For example : I wan to find the rows that match title “The God father” released in the year of “1972”. I have been trying to anding/oring the return obj, but unsucessfully. Thanks for any tip please.
You can provide a function as first argument of the find API
var results = data.find(obj => (obj.last = "aaa" or obj.first == "bb"));
Sorry, but I could not realize how to implement the solution. Please, can you adapt the 15-03-11sample bellow and send me the result? Just to enphasize, I want find rows where “title” == “The Godfather” and (&&) “year” == “1972”.
var value = this.getValue().toLowerCase();
var table = $$(“dt1”);
var res = table.find(function(obj){
return obj.title.toLowerCase().indexOf(value) != -1;
});
Please check the next snippet - http://webix.com/snippet/7132dff1