How do I detect clicks on the background of a layout with buttons and labels inside? #4856
-
Hi! I'm struggling to create an area with buttons/labels inside, whose background I can also click (to do something custom). I know about Do you know how I can achieve this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I accidentally stumbled upon You can call it with a
Keep in mind that |
Beta Was this translation helpful? Give feedback.
I accidentally stumbled upon
interact_bg
just now 😅You can call it with a
Sense
inside the widget you are drawing, and the background will detect thatSense
:Keep in mind that
interact_bg
works with the ID of the parent element you are drawing, so if you have multiple ones they will each require a custom ID, which you can give them withpush_id
.