Skip to main content

Event Handling

Attaching event listeners#

You can add any handler to the events of Form. To do this, use the method with the following parameters:

evNamename of the event
evHandleruser-defined event handler"Click", function(name,e){    console.log(id);});

Several handlers can be attached to one and the same event, and all of them will be executed.

Related sample: Form. Events


The names of the events are case-insensitive.

Detaching event listeners#

There is a simple way of removing an event handler with the method:"Click", function(name,e){    console.log(id);});"Click"); 

Calling events#

A custom event can be called with the fire() method of the events module:,[args]);

List of supported events#

You can find the full list of Form events in the API section.