I have a toggle in my widget:
- component: oh-toggle
config:
color: red
item: =props.Relay_on_off
style:
--f7-toggle-height: =(device.desktop)?('2.0vw'):('7.5vw')
--f7-toggle-width: =(device.desktop)?('4.5vw'):('16.5vw')
but depend on the other toggle I want make this active / inactive - means, when it’s active, it’s clickable, when it’s inactive, it’s transparent (because I still want see a status of the switch) and not clickable.
How can I do this ?
Thanks