DHTMLX Docs & Samples Explorer

Events

As with other dhtmlx components you can set event handlers on number of events using same method - attachEvent(�). List of available events can be found in API documentation. Nearly each event handler gets some parameters. This also described with list of available events.

Here is an example of how to set event handler to capture the moment item was clicked:

  myFolders.attachEvent("onclick",function(id){
    alert("Item ID is: "+id)
  })

As you can see from example, item ID was passed to the event handler, so you can use it to get item object and all it's properties and values.