Refine your search:

Hey,

With single value buttons, I know that you can have red, green and amber colours as standard.

How would I be able to define my own colours (purple, orange etc) for this object? E.g. I want the colour of my single value button to turn purple when a certain value range is reached.

Thanks in advance for your help

asked 28 Sep '10, 16:56

Ant1D's gravatar image

Ant1D
59616
accept rate: 28%


One Answer:

You need to define a CSS class for this. Best way to do this is to create a application.css file in the app of your dashboard.

$SPLUNK_HOME/etc/apps/<APP>/appserver/static/application.css

Here are some sample CSS rules:

.SingleValue .purple { background-color: purple; color: white; }
.SingleValue .darkred { background-color: #CC0000; color: #FFFFFF; }

These same rules define 2 classes (purple and darkred) that can be used to color the single value element.

link

answered 28 Sep '10, 17:06

ziegfried's gravatar image

ziegfried ♦
7.2k1315
accept rate: 53%

1

Thanks again Ziegfried

(29 Sep '10, 09:09) Ant1D
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×325
×35
×26

Asked: 28 Sep '10, 16:56

Seen: 1,000 times

Last updated: 28 Sep '10, 17:06

Copyright © 2005-2012 Splunk, Inc. All rights reserved.