Check documentation for the latest version of dhtmlxSuite dhtmlXAccordion API DHTMLX Docs

dhtmlXAccordion API

Methods
addItem adds a new item to Accordion
attachEvent adds any user-defined handler to available events
attachFooter attaches footer to component's bottom
attachHeader attaches header to component's top
attachMenu attaches dhtmlxMenu to component's top
attachRibbon attaches dhtmlxRibbon to component's top
attachStatusBar attaches a status bar object to component's bottom
attachToolbar attaches dhtmlxToolbar to component's top
cells returns dhtmlXCellObject object by id
clearIcon clears an item's icon
closeItem closes an item
detachEvent detaches a handler from an event
detachFooter detaches footer from component's bottom
detachHeader detaches header from component's top
detachMenu detaches dhtmlxMenu from component's top
detachRibbon detaches dhtmlxRibbon from component's top
detachStatusBar detaches status bar object from component's bottom
detachToolbar detaches dhtmlxToolbar from component's top
enableDND enables drag-n-drop
enableMultiMode enables multi mode in accordion (more than one cell opened at time), disabled by default
forEachItem iterator, calls a user-defined function n-times
getAttachedMenu returns dhtmlxMenu instance attached to component's top
getAttachedRibbon returns dhtmlxRibbon instance attached to component's top
getAttachedStatusBar returns status bar object attached to component's bottom
getAttachedToolbar returns dhtmlxToolbar instance attached to component's top
getText returns item's text
hideItem hides an item
hideMenu hides dhtmlxMenu attached to component's top
hideRibbon hides dhtmlxRibbon attached to component's top
hideStatusBar hides status bar object attached to component's bottom
hideToolbar hides dhtmlxToolbar attached to component's top
isActive returns true if item is opened
isItemHidden returns true if item is hidden
loadJSON init accordion from json file
loadStruct loads data to the component via XML or JSON, usually component config
loadXML init accordion from xml file
moveOnTop moves an item to the top
openItem opens an item
progressOff hides progress indicator for full component
progressOn shows progress indicator for full component
removeItem removes an existing item
setActive opens an item
setEffect sets an effect
setIcon sets an item's icon (header's icon)
setIconsPath sets path to icons
setIconset sets the font awesome iconset
setItemHeight sets item's height for multimode
setOffset sets vertical offset between cells
setOffsets sets offsets for parent container from each side
setSizes changes object instance's size according to the outer container
setSkin sets skin
setSkinParameters change skin params
setText sets item's text
showItem shows an item
showMenu shows dhtmlxMenu attached to component's top
showRibbon shows dhtmlxRibbon attached to component's top
showStatusBar shows status bar object attached to component's bottom
showToolbar shows dhtmlxToolbar attached to component's bottom
unload destructor
Events
onActive occurs when the user clicks left mouse button on item's heading
onBeforeActive occurs when the user clicks on an item, but before this item becomes active and open
onBeforeDrag fires when a user clicks on an item, but before the dragging is started
onContentLoaded fires when content is loaded into cell via attachURL()
onDock fires when the window docks into the accordion
onDrop fires when dnd ended and the dragged cell's position changed
onUnDock fires when the cell docks into the window
onXLE fires when the data loading is finished and a component or data is rendered
onXLS fires when XML loading started
Other
dhxWins link to dhtmlXWindows instance
Back to top