Dashboards & Visualizations

How do you capture a Pagination or Sorting event in javascript/jquery?

anwarmian
Communicator

I have a JavaScript + HTML dashboard. I have a table In one of my panels. I would like to capture the event that is triggered when you move from page to page (pagination) on the table grid or when you are sorting a column. I have control over the row rendering event but that is not the same as pagination or sorting event. I would really appreciate if someone could shed some light on this. Thank you in advance.

sumangala
Path Finder

Hi,

Splunk provides buildin pagination option for TableElement widget. U just need to trigger the event to fill the table with content.
Bydefault splunk provide 10 rows per page. So need not to use jquery concept for pagination.
Sample example is parsing json data into table contents.

|stats count |eval json1 = "{
\"widget\": {
\"text\": {
\"data\": \"Click here\",
\"size\": 36,
\"data\": \"Learn more\",
\"size\": 37,
\"data\": \"Help\",
\"size\": 38,
}}"
|spath input=json1|rename widget.text{}.* as *
| table widget.text, widget.text.data,widget.text.size

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...