returns the function that implements the filtering logic
function | the function that implements the filtering logic |
var helper = $$("querybuilder1").getFilterHelper();
...
$$("$datatable1").filter(helper);
The returned "helper" function iterates through the dataset items and checks whether they correspond to the filter rules. The "helper" function returns true if the item complies with the rule and false, if it doesn't.
After you've received the helper function, you can pass it to the Webix filter method to enable filtering of data components with Query Builder.