Replies: 1 comment
|
My way of handling this is putting an "obj" with the same dimensions as the button and opacity 0. Then using it's events for the rest. You don't get the visual click that you want but it works. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
He guys, yesterday I added popup to confirm critical switches on my device: however the problem is - I can't get around toggle enabled btn elemet to display correct state. When I hit button, popup comesup but button changes state to ON even if I hit reject button on popup.
Any ideas are highly appreciated.
My code on the device pages.jsol:
{"page":2,"id":6,"obj":"btn","x":10,"y":190,"w":140,"h":40,"toggle":true,"text":"OLD GATE","text_font":18,"mode":"break","align":1}Instructions sent on toggle from HA:
All reactions