Getting Data In

Header Coloring and coloring of cell using java script

Rukmani_Splunk
Path Finder

Hi All,
I am having table, whose cell coloring is done based on the condition . So i have a java script which brings me the color coding of the cell,
I need a specific color for the header of the table. how can i achieve If i a css how can i pass two ids to a table ?please help me

0 Karma

jinseong
Path Finder

Hi,

rk .splunk-table .shared-resultstable-resultstableheader

     {
       position: fixed !important;
       top: 290px !important;
       width: 97.7%;
       background-color: #e1e6eb;
       z-index: 4;  
     }

Look at the css code above.
Where rk is the table ID. Edit the header color by adding ID to your table in xml and putting css directly into xml

0 Karma

niketn
Legend

@Rukmani_Splunk if you know the Table Header name it can be directly applied through Simple XML CSS Extension. Refer to answer: https://answers.splunk.com/answers/593399/column-headers-color.html

If your Table column names are dynamic you would have to apply color through JS. Refer to another one of my answers: https://answers.splunk.com/answers/612296/how-to-change-the-header-color-dynamically-using-j.html

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...