getFilterFunction

returns the function that checks the passed item against the filter criteria

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

Example

const filter = $$("filter-view").getFilterFunction();
// "filter-view"` is the ID of Filter
$$("data-component").filter(obj => filter(obj));
// "data-component"` is the data component that must be filtered

Related samples

See also
  • Articles
  • Back to top