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!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...