Hi Edward,
to change the color of your text without CSS, change the apparence of this one here :
When you change the color, the resulting class is here :
If you want to change it dynamically from your enum, you can reuse these classes. In the paragraphe “Dynamic class”
My enum look like :
In my exemple below, I change the color of my text, when his length is different.
Here my result :
Hope it serve you, regards,
Jérôme
Hi Edward,
There’s a Render Mode selector in your text properties:
Setting that to “Paragraph” should render the text as a paragraph element with the dynamic classes you configured on top of it.
it is throwing following error to me "unknown function getCaption"
This is my code.
if $currentObject/TempString1 = 'success' then getCaption(MainApp.Status.success)
else if $currentObject/TempString1 = 'warning' then getCaption(MainApp.Status.warning)
else getCaption(MainApp.Status.danger)