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!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...