It renders a status string within a colored badge.
This filter uses the color palette to generate a colored badge depending on the displayed value.
Values that are not registered will be associated with a random color that will be used for the rest of the navigation.
The value text before being printed within the colored badge is localized according to the user language.
Without this filter, the values of metrics/properties are printed as they are according to the underlying value type, for instance:
By default the filter recognizes and formats the following values.
Filter Variants
The set of predefined filter variants that can be used to format values.
statusBadge | |
---|---|
Prints out the given value within a colored badge. Supported Input Types: INTEGER | FLOAT | NUMBER | STRING | BOOLEAN Output Type: HTML |
Configuration
New mappings between values and colors can be defined through the following method call that must be added to your filter.js appearance resource.
registerValueColor("VALUE 1", "#AABBCC");
registerValueColor("VALUE 2", "#A1B2C3");