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!

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureThursday, March 27, 2025  |  11AM PST / 2PM EST | Register NowStep boldly ...

Splunk AppDynamics with Cisco Secure Application

Web applications unfortunately present a target rich environment for security vulnerabilities and attacks. ...

New Splunk Innovations Enhance Performance and Accelerate Troubleshooting

Splunk is excited to announce new releases that empower ITOps and engineering teams to stay ahead in ever ...