getFilterFunction

returns a helper-function that checks if the items pass the filtering rules

function getFilterFunction();
functionthe function that checks the filter criteria

Example

$$("query").getState().$observe("value", v => {
  // "data-widget" stores the data to filter
  $$("data-widget").filter($$("query").getFilterFunction());
});

Related samples

Details

The getFilterFunction() method returns a helper-function that combines all the defined filtering rules.

See also
Back to top