Why its not possible to add Event “Function” to a group of elements?
#Rawabi
Why its not possible to add Event “Function” to a group of elements?
#Rawabi
Hey,
Can you please clarify what is the use case? What you are trying to achieve?
Thanks,
Tal.
A number inside a shape, when mouseOn do something mouseOut something else.
so if i did it for the number it will do the mouseOut when the mouse on the shape,
same as if its on the shape, it will do the mouseOut event when the mouse touch the Number!
Mustafa,
You can actually do it using code. A group registers as a box element, so you can refer to it as you normally would using the $w selector.
For the full API reference, you can follow this link .
$w.onReady(function () {
//TODO: write your page related code here...
$w("#panels").onMouseOut((event,$w)=>{
//Enter Your Code Here as you normally would.
disableAllEnabled();
})
});
Hope this helps.
Chris
Hi Chris,
thanks for your help, and yes it works.
In my case I’ve done it by resizing the size of the text area to match the shape and create the event on the text.
but it will help us a lot to have possibility to add events on a group of elements - just a suggestion
Thanks.