DHTMLX Docs & Samples Explorer

Events

The following events are available in dhtmlxLayout:

  • onDock/onUndock - occurs when the user clicks the left mouse button on item's button “Dock”/“Undock”
  • onResizeFinish - occurs when a user finishes layout resizing
  • onPanelResizeFinish - occurs when a user finishes resizing an item
  • onExpand - occurs when an item is being expanded;
  • onCollapse - occurs when an item is being collapsed.
  • onDblClick - occurs when an item's header is double-clicked

 
Event names are case-insensitive.

Adding event

If you need to attach event to an application, use the attachEvent() method with the following parameters:

  • evName - the name of an event;
  • evHandler - the user-defined event handler.
dhxLayout.attachEvent(evName, evHandler);