Protected
clickThe BaseClickHelper instances being mixed
Protected
Readonly
listenersProtected
refsThe current click state
Add a ClickHelper to the list of complementing ClickHelpers. Note that duplicates are allowed.
The intended way of using this is to, for example, create a ClickHelper, use it normally, and add it when the widget is attached (handleAttachment), and do the opposite when the widget is detached (handleDetachment).
Listen to events from this helper. Duplicate listeners allowed.
Protected
dispatchDispatch an event to all listeners.
Protected
dispatchDispatch an event to a specific listener. Listener does not have to be added
Protected
Readonly
handleRemove a ClickHelper from the list of complementing ClickHelpers.
Depending on your use-case, you might also want to reset the ClickHelper after removing it from this list.
Stop listening to events from this helper. If a duplicate listener is removed, only one is removed.
True if a listener was removed, false otherwise.
A class that mixes multiple BaseClickHelper instances into one. Useful if you want a widget to be both clickable by a pointer and by the enter key