We have two examples of querying your underlying data as your end user takes some action (e.g. typing into a dropdown search bar):
- Dropdown component from our vanilla components
This uses embeddableState to perform the loadData call whenever you search. - Table component from our vanilla components
Uses the same technique to do paging.
You can use a similar logic to enable a user to download the full dataset when clicking ‘download as csv’: by changing the limit
argument on the TableChart.emb.ts. By adding limit: undefined
your user can download the full dataset (still filtered for their level of access).