DHTMLX Docs & Samples Explorer
Table of Contents
dhtmlxAccordion API Methods
dhtmlXAccordion Object
Items
Index
dhtmlxaccordion
API Methods
dhtmlxAccordion API Methods
dhtmlXAccordion Object
Init
dhtmlXAccordionObject
constructor
unload
destructor
Common
setIconsPath
sets path to icons
setSizes
changes object instance's size according to the outer container
Events
attachEvent
attaches an event handler to the accordion
detachEvent
removes an event handler
checkEvent
returns true if the event exists
Items
Common
addItem
adds a new item
removeItem
removes an existing item
cells
returns the handler to an item by id
getId
returns item's id
forEachItem
iterator, calls a user-defined function n-times
moveOnTop
move item on top
Multi-Mode
enableMultiMode
enables multimode in accordion (disabled by the default)
setHeight
sets item's height for multimode
Docking/Undocking
dock
docks an item from a window
undock
undocks an item to a window
Text
setText
sets item's text
getText
returns item's text
Visibility
show
shows an item
hide
hides an item
Open/Close
open
opens an item
close
closes an item
isOpened
returns true if item is opened
Icons
setIcon
sets item's icon (header icon)
clearIcon
clears item's icon
Attaching Objects/dhtmlx Components
attachMenu
attaches dhtmlxMenu to the cell
attachToolbar
attaches dhtmlxToolbar to the cell
attachStatusBar
attaches status bar to the cell
attachTree
attaches dhtmlxTree to the cell
attachGrid
attaches dhtmlxGrid to the cell
attachTabbar
attaches dhtmlxTabbar to the cell
attachFolders
attaches dhtmlxFolders to the cell
attachAccordion
attaches dhtmlxAccordion to the cell
attachEditor
attaches dhtmlxEditor to the cell
attachLayout
attaches dhtmlxLayout to the cell
attachURL
attaches dhtmlxURL to the cell
attachObject
attaches html object to the cell