Check documentation for the latest version of dhtmlxSuite onClick DHTMLX Docs

onClick

fires when the user clicks the left mouse button on a button or a buttonSelect items

void onClick(string|number itemId,string|number bId);
itemIdstring|numberitem id
bIdstring|numberbuttonSelect item id (for buttonSelect)

Example

myRibbon.attachEvent("onClick", function(itemId, bId){
    // your code here
});

Change log

bId added in 4.2

Back to top