DHTMLX Docs & Samples Explorer

Events

Attaching/detaching events

You can attach several handlers to the same event and detach them using two respective methods:

  1. attachEvent() - to attach event

    var myEvent = myPop.attachEvent("onClick", function (id){
        //event handler code
    })
  2. detachEvent() - to detach event

    myPop.detachEvent(myEvent);

List of events

  • onClick - fires when the user clicks on an item of the inner list attached through the attachList method.
  • onContentClick - fires when the user clicks on the pop-up content.
  • onShow - fires when the pop-up window shows.
  • onHide - fires when the pop-up window hides.