addEventListener ( eventName, listener, scope)
addEventListener ( eventName, listener, scope)
Registers application function as a listener for specified panel event.
Parameters:
-
eventName
(String): one of the event types supported by this panel, for example "afterRefresh
" -
listener
(function): function or name of the function to be called -
scope
(object): (optional) if scope is specified, the listener is a function that must be called in scope
Example:
Add an
afterRefresh
listener
:
panel.addEventListener(
'afterRefresh',
function (panel) {
highlightStatusColors(panel);
}
);