DHTMLX Docs & Samples Explorer

Index
dhtmlxaccordion
API Methods

### addItem(itemId, itemText)

Required library edition:
Required library file: dhtmlxaccordion.js

adds a new item

- itemId - item's id
- itemText - item's text

        var dhxAcc = new dhtmlXAccordionObject(...);
        // adding items
        dhxAcc.adItem("item_a", "The Secret of Monkey Island");
        dhxAcc.adItem("item_b", "Monkey Island 2: LeChuck's Revenge");
        dhxAcc.adItem("item_c", "The Curse of Monkey Island");
        ...