Static
instanceGet reference to the singleton instance.
Adds a listener to an element for specific events for a certain group.
The method calls UFHtml.addListener and stores the remove function in the group.
Use removeAllForGroup to remove the listener and all other listeners in the group.
Group to register listener for
Element to add listener to
One or more events to listen for (separated by space)
Listener to call when event triggers.
Adds a listener to multiple elements for specific events for a certain group.
The method calls UFHtml.addListeners and stores the remove function in the group.
Use removeAllForGroup to remove the listener and all other listeners in the group.
Group to register listener for
Selector for the element(s) or a list of elements.
One or more events to add listener for (separated by space).
A factory function that creates a handler callback for the element.
Adds an event listener to an element. The method first removes a previously added listener for the event (if any).
Element to add event listener to
Name of event to add listener for
Event handler to call when event is triggered
Removes all listeners for a specific group that were set via addListenerForGroup and addListenersForGroup.
Group to remove all listeners for.
Removes a previously added event listener.
Element to remove event listener from
Name of event to remove listener for
The UFEventManager is a singleton class that manages event listeners.
It provides methods to add and remove event listeners for specific groups or single events.
Use UFEventManager.instance to access the methods.