Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hi,
I want to change text colors of tree widget elements based on different conditions.
The tree is created based on infotable which is output of a service.
Need to add logic on service to change the text colors, Are there any way to achieve this ?
Is it possible to add state definition on service ?
Thanks
Hi @SM_10230689
You can try to use the custom class property on the widget and setup different condition on the custom css
https://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/index.html#page/ThingWorx/Help/Mashup_Builder/Mashups/MashupCustomClassProperty.html
https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Mashup_Builder/Mashups/CustomCSSTutorial.html
Hope this helps
Thanks
Use "TreeFormatter" widget property with statedefinitions to change the font/bg color based on the infotable field value.
For more: