DojoMobileAccordion

DojoMobileAccordion widget contains a collection of content panes that can be expanded (contents shown) or collapsed (contents hidden). Only widgets of type DojoMobileAccordionPane can be used as panes in the accordion.

Properties

animation
Whether to use animation when you expand or collapse panes.
duration
The duration of the expanded/collapsed animation.
fixedHeight
Specifies whether the accordion widget has a fixed height on the web page. Only one accordion pane is open at any time and accordion panes can only be closed by opening another one.
iconBase
The default icon to show in the title bars of the accordion panes.
iconPos
The default position of the pane icons. It is a string in the form of “top, left, width, and height”.
singleOpen
Specifies whether only one pane is open at a time. If another pane is open, the currently opened one will be collapsed.
RoundRect
Specifies whether the accordion will have rounded edges.

Functions

hasChild
Determines whether the specified pane is present in the accordion.
indexOfChild
The index of the specified pane in the accordion, or -1 if the pane is not found.
selectPane
Highlights the specified pane's title bar.
deselectPane
Removes the highlighting of the specified pane's title bar.
expandPane
Expands the specified pane.
collapsePane
Collapses the specified pane.
isPaneSelected
Determines whether the specified pane is selected.