find

returns all rows that match the criterion, or only the first one

array|object find(function criterion, [boolean first] );
criterionfunctionthe criterion to match
firstbooleanoptional, if true, only the first found result is returned. False by default.
array|objectan array of found rows or a row object if the 2nd parameter is set to true

Example

// finds all rows which title match the given value
table.find(function(obj){
    return obj.title.toLowerCase().indexOf(value) != -1;
});

Related samples

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript component library and page of TreeMap product.