I have two widgets, one is input (switch) and the other is output (text). I want to control the text output by the switch. When switch is on the text value is ('Switch is On') and when the switch is set off by the user, the text output is ('Switch is Off').
What event should be attached to each of them? ('Binding updated/User Input/...). I don't what script to use so that the communication between the input and output works..
I would be grateful if you can provide me with a simple example. Thanks