Dashboards & Visualizations

Can tooltip be used on Splunk table headers?

Path Finder

Hi Everyone,

I want to use tooltip/ mouse hover on splunk table headers.

eg:- ...|table abc

Whenever I hover on field name(abc), it should show Nikks Mahajan.

Thanks
Nikks

Tags (3)
0 Karma

Motivator

@nilaksh92,

Simplest solution is to give id to your table (mytableid) and add very small javascript with below content:

$("#my_table_id table th a").attr("title","This is table header");

Above will add same tooltip to all the columns but you can make jquery to make specific selection.

Hope this helps!!!

0 Karma

Communicator

For me the text would be static per table field and the fields are fixed in this case. Thanks for any help!

0 Karma

SplunkTrust
SplunkTrust

You can refer to the following blog. You will have to put in your own JavaScript to apply only for Table Header.

https://www.splunk.com/blog/2014/01/29/add-a-tooltip-to-simple-xml-tables-with-bootstrap-and-a-custo...

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

Path Finder

Hi

Thanks for your valuable suggestions.

As this is only for the cell values, can we do for the field labels?

Thanks
Nikks

0 Karma

Communicator

Did you ever find a solution for this?

0 Karma

SplunkTrust
SplunkTrust

@nilaksh92 @cblanton is the tooltip text static tooltip or would it be based on the table header. Please add some example of what the table header might be and accordingly what kind of Tooltip text need to be displayed.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma