Elements Event Handling

This examples shows the ability to attach listeners to handle several events. In this example, you can attach different events to three elements: workspace, small elipse and the big elipse. Events will follow the event bubbling behaviour.
Workspace Events



Small Elipse Events



Big Elipse Events



Multiple listeners can be attached to an element to handle an event type. In this example, multiple listeners can be registered to the elipse element to handle the click event type.
Elipse Click Events Listeners