This article covers events (see the related events for the components here).
To attach any event you need to use the attachEvent() method.
$$("someId").attachEvent("onItemClick", function ())
We'll take a simple example: a toolbar that contains a label, the click on which opens a window.
Our actions:
<body> <script type="text/javascript" charset="utf-8"> dhx.ui({ rows:[{ view:"toolbar", type:"MainBar", id:"bottomBar", data:[ // specifies toolbar and its label {type:"label", label: "Open a window", align:"center"}] }] }); $$("bottomBar").attachEvent("onItemClick",function Open(){ dhx.ui({ view:"window", head:{ view:"toolbar", type:"MainBar",data:[{ type:"label", label:"Window", align:"left"}, {type:"button", label:"Close", align:"right"}] }, body:{}, top:70, left:50, move:true }) }) </script> </body> </html>