Control.addEvents

Syntax

addEvents (elem: HTMLElement, onEvents: Array, fixEv: Boolean);

Parameters

elem. DOM node to subscribe to events.

onEvents. JSON object looking like {<event name>: <handler>, <event name>: <handler> ...};

fixEv. Determines whether to call fixEvent for the event. If parameter value is True, the fixEvent event is fired. By default the parameter is set to True.

Description

The addEvents method adds an array of event handlers to DOM node.

Example

The example of method use is given in description of the Control.removeEvent method.

See also:

Control