DHTMLX Docs & Samples Explorer

onActive

This event calls user-defined handlers (if there are any) and passes the following parameters:

  • itemId - the id of the activated item;
  • state - default (single) mode is always true. Multimode is true if the item was activated (opened) and false if the item was deactivated (closed).
dhxAccord.attachEvent("onActive", function(itemId, state){
   // code here
});
   // or
function doOnActive(itemId, state){
   // code here
}
dhxAccord.attachEvent("onActive", doOnActive);