The normalizeColor() method converts an RGB or hexadecimal color value to a fully-qualified hexadecimal equivalent.
hexColor = Splunk.util.normalizeColor( color )
|
color |
String |
RGB or hexadecimal color value. |
|
String |
Fully-qualified, six-digit hexadecimal color value with leading number symbol (#), or null, if color cannot be processed. |
getCSSColor: function(specificity, cssProperty){
var color;
for (var i=0; i<specificity.length; i++){
var computedColor = specificity[i].css(cssProperty);
color = Splunk.util.normalizeColor(computedColor);
if (color){
return color;
}
}
return null;
},