DhtmlxAccordion Lock

Hi,



DhtmlxTabbar allow to disable Tabs, is it possible to do the same thing with an Accordion ?



Best regards,



Jack River


hello,


you can use onBeforeActive event. It should return true for items that can be open. For example if item with id = “a2” is disabled, the code can be following:


dhxAccord.attachEvent(“onBeforeActive”,function(id){
if(id!=“a2”) return true;
})



Thanks, it works fine.