<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do you capture a Pagination or Sorting event in javascript/jquery? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-capture-a-Pagination-or-Sorting-event-in-javascript/m-p/175773#M10888</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Splunk provides buildin pagination option for &lt;CODE&gt;TableElement&lt;/CODE&gt; widget. U just need to trigger the event to fill the table with content.&lt;BR /&gt;
Bydefault splunk provide 10 rows per page. So need not to use jquery concept for pagination.&lt;BR /&gt;
Sample example is parsing json data into table contents.&lt;/P&gt;

&lt;P&gt;|stats count |eval json1 = "{&lt;BR /&gt;
    \"widget\": {&lt;BR /&gt;
    \"text\": {&lt;BR /&gt;
        \"data\": \"Click here\",&lt;BR /&gt;
        \"size\": 36,&lt;BR /&gt;
        \"data\": \"Learn more\",&lt;BR /&gt;
        \"size\": 37,&lt;BR /&gt;
        \"data\": \"Help\",&lt;BR /&gt;
        \"size\": 38,&lt;BR /&gt;
       }}" &lt;BR /&gt;
      |spath input=json1|rename widget.text{}.* as * &lt;BR /&gt;
      | table widget.text, widget.text.data,widget.text.size&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2017 11:37:03 GMT</pubDate>
    <dc:creator>sumangala</dc:creator>
    <dc:date>2017-09-04T11:37:03Z</dc:date>
    <item>
      <title>How do you capture a Pagination or Sorting event in javascript/jquery?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-capture-a-Pagination-or-Sorting-event-in-javascript/m-p/175772#M10887</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2015 13:42:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-capture-a-Pagination-or-Sorting-event-in-javascript/m-p/175772#M10887</guid>
      <dc:creator>anwarmian</dc:creator>
      <dc:date>2015-03-12T13:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do you capture a Pagination or Sorting event in javascript/jquery?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-capture-a-Pagination-or-Sorting-event-in-javascript/m-p/175773#M10888</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Splunk provides buildin pagination option for &lt;CODE&gt;TableElement&lt;/CODE&gt; widget. U just need to trigger the event to fill the table with content.&lt;BR /&gt;
Bydefault splunk provide 10 rows per page. So need not to use jquery concept for pagination.&lt;BR /&gt;
Sample example is parsing json data into table contents.&lt;/P&gt;

&lt;P&gt;|stats count |eval json1 = "{&lt;BR /&gt;
    \"widget\": {&lt;BR /&gt;
    \"text\": {&lt;BR /&gt;
        \"data\": \"Click here\",&lt;BR /&gt;
        \"size\": 36,&lt;BR /&gt;
        \"data\": \"Learn more\",&lt;BR /&gt;
        \"size\": 37,&lt;BR /&gt;
        \"data\": \"Help\",&lt;BR /&gt;
        \"size\": 38,&lt;BR /&gt;
       }}" &lt;BR /&gt;
      |spath input=json1|rename widget.text{}.* as * &lt;BR /&gt;
      | table widget.text, widget.text.data,widget.text.size&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 11:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-capture-a-Pagination-or-Sorting-event-in-javascript/m-p/175773#M10888</guid>
      <dc:creator>sumangala</dc:creator>
      <dc:date>2017-09-04T11:37:03Z</dc:date>
    </item>
  </channel>
</rss>

