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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...