Can some one please help me to change the background color of Table fieldname.
By default I am getting the fieldname background color is GREY.
You can override the bootstrap default colors. Try this example and see if it fits your requirement
<dashboard>
<label>Table Background</label>
<row depends="$hidden_table$">
<panel>
<html>
<style type="text/css">
th {
background-color: green !important;
color:white !important;
}
</style>
</html>
</panel>
</row>
<row>
<panel>
<table>
<search>
<query>index=_internal|stats count by sourcetype</query>
<earliest>-15m</earliest>
<latest>now</latest>
</search>
<option name="drilldown">none</option>
</table>
</panel>
</row>
</dashboard>
I have used the same code whichyou have given as a test with appropriate index, but it's not updating the header color.
@skodak ,
That works perfectly as seen in the screenshot. what if you run exactly same in a separate dashboard? It's a run anywhere example and should run for you as well
@skodak refer to one of my older answers on how to use Browser Inspector and CSS override to change Table Header Background and Font Color as per need.
As stated in the link provided above, can you try the following?
<html depends="$alwaysHideCSSStyle$">
<style>
.table th {
background-image: linear-gradient(to bottom, blue, turquoise) !important;
text-shadow: none !important;
}
.table th a{
color: white !important;
}
</style>
</html>