Check documentation for the latest version of dhtmlxSuite enableMultiMode DHTMLX Docs

enableMultiMode

enables multi mode in accordion (more than one cell opened at time), disabled by default

void enableMultiMode( [string yScrollMode,number defaultHeight] );

Parameters

yScrollModestringoptional, "auto" or "scroll" to set overflow style for parent
defaultHeightnumberoptional, change default height for items (90 by default)

Example

var myAcc = new dhtmlXAccordion(...);
 
// first enabling multimode
myAcc.enableMultiMode();
 
// then adding items
myAcc.adItem("item_a", "The Secret of Monkey Island", true);
myAcc.adItem("item_b", "Monkey Island 2: LeChuck's Revenge");
myAcc.adItem("item_c", "The Curse of Monkey Island");
...

Details

If you plan to use the multi mode, you need to enable it before adding items

Back to top