Required library edition:
Required library file: dhtmlxlayout.js
attaches an event handler to a dhtmlxLayout
Several handlers can be attached to one and the same event, and all of them will be executed.
Note: the names of the events are case-insensitive.
dhxLayout.attachEvent("onExpand",function(id){ alert("Cell "+id+" was expanded."); }); // or function doOnExpand(id) { alert("Cell "+id+" was expanded."); } dhxLayout.attachEvent("onExpand", doOnExpand);