Filter Option

Forms Developer Guides Scripting Interface Menu

FILTER_OPTION(text, query, callback)

App.menu().filter_option(text, query, callback);
App.menu().filter_option(text, query);
App.menu().filter_option(query, callback);

Adds a filter option, which opens a visual editor for the Query Object when clicked. When the query is changed, the original value is mutated and the callback is fired.

The text argument sets the button's text, and is optional. Any of the parameter formats shown in the example above are valid.