Handling Events

Attaching Event Handler

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

  • evName - name of the event;
  • evHandler - user-defined event handler.
$$("ssheet").attachEvent(evName, evHandler);

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.

Detaching Event Handler

There is a simple way of removing an event-handler:

$$("ssheet").detachEvent(id); // unique id of the event handler

List of Supported Events

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

Related sample:  Events

Back to top
If you have not checked yet, be sure to visit site of our main product Webix html5 ui library and page of web spreadsheet product.