Extension event type for handling buttons on top of a dom element. This event type fires “buttonclick” on its target when a button was clicked. Buttons are detected by the “olButton” class.
This event type makes sure that button clicks do not interfere with other events that are registered on the same element.
ALKMaps. | Extension event type for handling buttons on top of a dom element. |
Properties | |
target | {ALKMaps.Events} The events instance that the buttonclick event will be triggered on. |
events | {Array} Events to observe and conditionally stop from propagating when an element with the olButton class (or its olAlphaImg child) is clicked. |
startRegEx | {RegExp} Regular expression to test Event.type for events that start a buttonclick sequence. |
cancelRegEx | {RegExp} Regular expression to test Event.type for events that cancel a buttonclick sequence. |
completeRegEx | {RegExp} Regular expression to test Event.type for events that complete a buttonclick sequence. |
startEvt | {Event} The event that started the click sequence |
Constructor | |
ALKMaps. | Construct a buttonclick event type. |
Functions | |
destroy | |
getPressedButton | Get the pressed button, if any. |
buttonClick | Check if a button was clicked, and fire the buttonclick event |
{ALKMaps.Events} The events instance that the buttonclick event will be triggered on.
Construct a buttonclick event type. Applications are not supposed to create instances of this class - they are created on demand by ALKMaps.Events instances.
target | {ALKMaps.Events} The events instance that the buttonclick event will be triggered on. |
destroy: function()
Get the pressed button, if any.
getPressedButton: function( element )
Check if a button was clicked, and fire the buttonclick event
buttonClick: function( evt )