Knowledge Management

is it possible to change the color/background-color of a button in a dashboard?

rrovers
Communicator

 

I found this source somewhere in the community and it works fine:

I  <row>
<panel>
<input type="link" token="refresh" id="color_button1">
<label></label>
<choice value="Yes">Ververs Overzicht</choice>
<change>
<condition value="Yes">
<set token="refresh_delay">1</set>
</condition>
</change>
</input>
</panel>
</row>

 

The colors of the button are grey with a white background. I would like to change this to colors that are more remarkable, for example a green background. I've tried several things but without the desired result.

Is it possible to change the colors of the button?

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Use a hidden (because $STYLES$ is never defined) with some CSS defined in a HTML panel:

  <row depends="$STYLES$">
    <panel>
      <html>
        <style>
          #color_button1 button {
            background-color: green !important;
            color: yellow !important;
          }
        </style>
      </html>
    </panel>
  </row>

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Use a hidden (because $STYLES$ is never defined) with some CSS defined in a HTML panel:

  <row depends="$STYLES$">
    <panel>
      <html>
        <style>
          #color_button1 button {
            background-color: green !important;
            color: yellow !important;
          }
        </style>
      </html>
    </panel>
  </row>
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...