Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Is there any method available to set the coloured text from Data Utility?
Solved! Go to Solution.
Hi @TDT
yes you can.
The method is to define your own CSS style then add a style to the AbstractGuiComponent
for example add own CSS style with your color to a xtheme-windchill.css
name MYCOLOR
.MYCOLOR {
color: red;
font-weight: bold;
}
and you set a style by .addStyleClass method in the DataUtility.
guiComponent.addStyleClass("MYCOLOR");
PetrH
Hi @TDT
yes you can.
The method is to define your own CSS style then add a style to the AbstractGuiComponent
for example add own CSS style with your color to a xtheme-windchill.css
name MYCOLOR
.MYCOLOR {
color: red;
font-weight: bold;
}
and you set a style by .addStyleClass method in the DataUtility.
guiComponent.addStyleClass("MYCOLOR");
PetrH
This article has a similar use-case, refer - https://www.ptc.com/en/support/article/CS354557