Skip to main content

Event Handling

Attaching event listeners#

The user can add any user-defined handler to any of the available events. To do this, the user can use the method with the following parameters:

evNamename of the event
evHandleruser-defined event handler"BeforeHide", function(id){    console.log("The id of a cell", id);});

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


The names of the events are case-insensitive.

Related sample: Layout. Events

Detaching event listeners#

There is a simple way of removing an event handler via the method:"BeforeHide", function(id){    console.log("The id of a cell", id);});"BeforeHide");

Calling events#

To call events, use"BeforeHide",args);// where args is an array of arguments

List of supported events#

You can find the full list of Layout events in the API Reference.