handsontable/src/eventManager.js, line 13
Event DOM manager for internal use in Handsontable.
Methods
-
handsontable/src/eventManager.js, line 40
addEventListener(element, eventName, callback){function}
-
Register specified listener (
eventName
) to the element.Parameters:
Name Type Description element
Element Target element.
eventName
String Event name.
callback
function Function which will be called after event occur.
Returns: {function} Returns function which you can easily call to remove that event
-
handsontable/src/eventManager.js, line 122
clear()
-
Clear all previously registered events.
-
handsontable/src/eventManager.js, line 129
destroy()
-
Destroy instance of EventManager.
-
handsontable/src/eventManager.js, line 140
fireEvent(element, eventName)
-
Trigger event at the specified target element.
Parameters:
Name Type Description element
Element Target element.
eventName
String Event name.
-
handsontable/src/eventManager.js, line 74
removeEventListener(element, eventName, callback)
-
Remove the event listener previously registered.
Parameters:
Name Type Description element
Element Target element.
eventName
String Event name.
callback
function Function to remove from the event target. It must be the same as during registration listener.