Change container's shadow color based on a switch position

Hi guys, i’m looking how to change the container shadow color when i turn a switch to On position, lets say if the switch is On, the container’s shadow color will turn Green and Label will display On, otherwise it will be Red and Label will not display anything.

@Gene This will be possible soon with the next release when we will be rolling out App Theming. It will allow you to use JS to control the container’s shadow color.

Thank you Dancia, how about just the Label then, how to change the label lets say to On if the switch is On and invisible when the switch is Off?

Hi Gene! You can set the Label property to {{Switch1.isSwitchedOn ? "On" : ""}} where Switch1 is the name of your Switch widget.