How do you set up a custom button for displaying limited results?

How do you set up a custom button for displaying limited results?

koniahinkoniahin Posts: 186Questions: 39Answers: 7

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.

Answers

  • allanallan Posts: 62,246Questions: 1Answers: 10,211 Site admin

    You need to call the search() or column().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

Sign In or Register to comment.