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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...