Search Option

Forms Developer Guides Scripting Interface Menu

SEARCH_OPTION(callback)

App.menu().search_option(function(value) {
    console.log("Search: " + value);
});

Adds a search button to the menu bar. The callback is called on every search input keypress, so you may need to rate-limit the callback if you are performing an expensive operation.

You can use the search method to set the search text directly.