DHTMLX Docs & Samples Explorer

Index
dhtmlxaccordion

## onActive

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

- itemId - id of the activated item;
- state - default (single) mode always true, multimode true if item was activated (opened) and false if item was deactivated (closed).

        dhxAccord.attachEvent("onActive", function(itemId, state){
            // code here
        });
        // or
        function doOnActive(itemId, state){
            // code here
        }
        dhxAccord.attachEvent("onActive", doOnActive);