Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! 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