6 Replies Latest reply on Jan 18, 2018 11:11 AM by gsee RSS
    gsee Apprentice

    Style Definitions as a property or variables

    Is it possible to set a style definition as a property of a Thing?


    Alternatively, would a style be able to take number values from Thing properties to customize the colors automatically, rather than defining each thing individually?



      • Re: Style Definitions as a property or variables
        aanjan Heavyweight Champ

        Gloria, Style Definitions are more like attributes for a Widget, rather than a Thing. If you want the colors to change automatically, they can be done on certain widgets like Radio Buttons, Shape widgets or even Grids, through the usage of State Definitions/ State-based formatting. With State Definitions you can choose what colors/ styles are displayed based on the range you set.