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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...