Buttons which switching the state
<= Color $mol_switch
value? <=> color? \red
options <= colors *
red \Red
green \Green
blue \Blue
value( next? ) : string
Property which should be changed value()
by buttons based on their own property options
.
options() : { [ key : string ] : any }
Keys are possible values of value
property. That options are labels which would be visible to user.
enabled() : boolean
Whether the switch is interactive.