DHTMLX Docs & Samples Explorer

dhtmlxAccordion API Methods

dhtmlXAccordion Object

Init

Common

Events

Items

Common

  • addItem - adds a new item
  • removeItem - removes an existing item
  • cells - returns the handler to an item by the id
  • getId - returns an item's id
  • forEachItem - iterator, calls a user-defined function n-times
  • moveOnTop - move an item on the 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 the window
  • undock - undocks an item to the window

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

Attaching Objects/dhtmlx Components