Tag column renderer
The tag renderer offers the possibility to display cell contents as a tag (
) in a specific colour and with an optional icon.
For this purpose, both the color and the icon can be evaluated as calculation expressions.
The input value of the expressions is the value of the entire row entry, not the value of the cell (data field column). The tag label is defined via the label expression of the cell.
For icon and color printing the cell value is available as variable "columnValue" and the value label as variable "columnLabel" ($var(columnValue), $var(columnLabel)).
Both hexadecimal representation (ff0000 for red) and decimal representation (16711680 for red) are accepted as a calculated colour value.
►NOTE◄ The hexadecimal representation can be preceded by a '#', '0x' or nothing. The color of the caption becomes either white or black depending on the background color value.
Tag contrast colour mode
The contrast mode of the tag color (background v.s. font color) is set by default via the Styles entry 'tagContrastColorMode', but can be overridden in the Layout section per label element.
Possible values:
Empty – value is taken from the Styles entry 'tagContrastColorMode'.
Default – colour is set as the background colour. The font colour is black or white, depending on the colour tone of the background.
Foreground – colour is set as background colour. The font colour is dynamically calculated as a lighter/darker version of the background colour.
Background – colour is set as font colour. The background colour is dynamically calculated as a lighter/darker version of the font colour.
Examples of contrast mode (foreground v.s. background):
|
Colour value |
Default |
Foreground |
Background |
|
#980F45 |
|
|
|
|
#23d323 |
|
|
|
|
#40b3a2 |
|
|
|