<?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: Can i have a tool tip for several headers on a table in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/683394#M55924</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;When I add for second column the solution is not working. How is find("a") related?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 11:15:39 GMT</pubDate>
    <dc:creator>Vasulaxnik</dc:creator>
    <dc:date>2024-04-05T11:15:39Z</dc:date>
    <item>
      <title>Can i have a tool tip for several headers on a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/560229#M38955</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table like below and I am looking to have a tooltip for several of its columns.&lt;/P&gt;&lt;P&gt;I have looked at some solutions on questions, but nothing seems to answer this one correctly.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robertlynch2020_0-1626795311134.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15171iF005342C9250985B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="robertlynch2020_0-1626795311134.png" alt="robertlynch2020_0-1626795311134.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Robert Lynch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 15:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/560229#M38955</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2021-07-20T15:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can i have a tool tip for several headers on a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/560331#M38967</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/141978"&gt;@robertlynch2020&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard script="table_header_tooltip.js"&amp;gt;
  &amp;lt;label&amp;gt;Table Header Tooltip&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table id="tbl1"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults count=5 |eval a=1 | accum a | eval "Header 1"="Hello "+a&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;table_header_tooltip.js&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
    'underscore',
    'jquery',
    'splunkjs/mvc',
    'splunkjs/mvc/tableview',
    'splunkjs/mvc/simplexml/ready!'
], function(_, $, mvc, TableView) {

    console.log("Hie 1");
    mvc.Components.get('tbl1').getVisualization(function(tableView) {
        tableView.on('rendered', function() {
            console.log("on rendered");
            tableView.$el.find(`[data-sort-key='Header 1']`).find("a").attr({
                "data-toggle": "tooltip",
                "data-placement": "left",
                "title": "My Tool Tip Value 1"
            });
            console.log(tableView.$el.children('[data-toggle="tooltip"]'));
            tableView.$el.children('[data-toggle="tooltip"]').tooltip();
            tableView.table.render();

        });
    });
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一 &amp;nbsp; ?&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 11:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/560331#M38967</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-21T11:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can i have a tool tip for several headers on a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/560339#M38970</link>
      <description>&lt;P&gt;Wonderfull - thanks very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;Also for other people if you want to add multiple columns&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;require([
    'underscore',
    'jquery',
    'splunkjs/mvc',
    'splunkjs/mvc/tableview',
    'splunkjs/mvc/simplexml/ready!'
], function(_, $, mvc, TableView) {

    console.log("Hie 1");
    mvc.Components.get('tbl1').getVisualization(function(tableView) {
        tableView.on('rendered', function() {
            console.log("on rendered");
            tableView.$el.find(`[data-sort-key='Header 1']`).find("a").attr({
                "data-toggle": "tooltip",
                "data-placement": "left",
                "title": "My Tool Tip Value 1"
            });
            console.log(tableView.$el.children('[data-toggle="tooltip"]'));
            tableView.$el.children('[data-toggle="tooltip"]').tooltip();
            tableView.table.render();

        });
    });
});

require([
    'underscore',
    'jquery',
    'splunkjs/mvc',
    'splunkjs/mvc/tableview',
    'splunkjs/mvc/simplexml/ready!'
], function(_, $, mvc, TableView) {

    console.log("Hie 1");
    mvc.Components.get('tbl1').getVisualization(function(tableView) {
        tableView.on('rendered', function() {
            console.log("on rendered");
            tableView.$el.find(`[data-sort-key='Header 2']`).find("a").attr({
                "data-toggle": "tooltip",
                "data-placement": "left",
                "title": "My Tool Tip Value 1"
            });
            console.log(tableView.$el.children('[data-toggle="tooltip"]'));
            tableView.$el.children('[data-toggle="tooltip"]').tooltip();
            tableView.table.render();

        });
    });
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 13:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/560339#M38970</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2021-07-21T13:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can i have a tool tip for several headers on a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/560352#M38972</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/141978"&gt;@robertlynch2020&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to just add one block like this.,&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
    'underscore',
    'jquery',
    'splunkjs/mvc',
    'splunkjs/mvc/tableview',
    'splunkjs/mvc/simplexml/ready!'
], function(_, $, mvc, TableView) {

    console.log("Hie 1");
    mvc.Components.get('tbl1').getVisualization(function(tableView) {
        tableView.on('rendered', function() {
            console.log("on rendered");
            tableView.$el.find(`[data-sort-key='Header 1']`).find("a").attr({
                "data-toggle": "tooltip",
                "data-placement": "left",
                "title": "My Tool Tip Value 1"
            });
 tableView.$el.find(`[data-sort-key='Header 2']`).find("a").attr({
                "data-toggle": "tooltip",
                "data-placement": "left",
                "title": "My Tool Tip Value 2"
            });
            console.log(tableView.$el.children('[data-toggle="tooltip"]'));
            tableView.$el.children('[data-toggle="tooltip"]').tooltip();
            tableView.table.render();

        });
    });
});&lt;/LI-CODE&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一 &amp;nbsp; ?&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 13:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/560352#M38972</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-21T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can i have a tool tip for several headers on a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/683394#M55924</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;When I add for second column the solution is not working. How is find("a") related?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 11:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/683394#M55924</guid>
      <dc:creator>Vasulaxnik</dc:creator>
      <dc:date>2024-04-05T11:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can i have a tool tip for several headers on a table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/683557#M55947</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230228"&gt;@Vasulaxnik&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share your sample code and JS?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Let's follow the community best practice create new questions and tag me for new comments and conversations :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 06:02:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-i-have-a-tool-tip-for-several-headers-on-a-table/m-p/683557#M55947</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2024-04-08T06:02:15Z</dc:date>
    </item>
  </channel>
</rss>

