resolve as hexadecimal color (Integration function)
Attempts to convert the input value into a hexadecimal colour code. The input value can also be the name of an Lobster Data Platform / Orchestration colour variable (Styles). This function is mainly used to be able to draw colour values configured in the system (e.g. provide tracking status colour via residual service).
Parameter
|
Parameter |
Meaning |
|
a |
The value to be converted into a hexadecimal colour code.
|
|
b |
Name of the Styles to use to resolve colour variables. |
Return value
Returns the hexadecimal color value with leading '#' character or zero if no conversion could be done.
Examples
|
Input a |
Output |
|
9965381 |
#980F45 |
|
#980F45 |
#980F45 |
|
primaryColor |
#980F45 |