How do you set up a custom button for displaying limited results?
How do you set up a custom button for displaying limited results?
See this service page for an example:
https://www.worldometers.info/coronavirus/
I reviewed the examples for both editor and non-editor. Specifically on the example site I see:
All, Europe, North America, etc.
How do you set up these shortcut functions to limit returns based on a query? Probably for both Editor and DataTables.
This discussion has been closed.
Answers
You need to call the
search()
orcolumn().search()
method with the filter that you want to apply to the table (probably a column search for something like this, so the global search is available for use by the end user).Create your buttons, or filter trigger (you could use our Buttons library, a simple
button
or any other trigger), and add an event handler to it which will call the API method to apply the search.Allan