Check documentation for the latest version of dhtmlxSuite onItemClick DHTMLX Docs

onItemClick

fires when an item is clicked

boolean onItemClick(string|number id,Event object ev,object html);
idstring|numberid of the item
evEvent objectnative event object
htmlobjecttarget HTML element
booleantrue - to trigger the default action, false - to block it

Example

myList.attachEvent("onItemClick", function (id, ev, html){
    // your code here
    return true;
});

Details

The event is blockable. Returning false from event handler will prevent the default action (clicking an item).

Back to top