(^586) ❘ APPENDIX N ACCORDION
ACCORDION OPTIONS
OPTION DESCRIPTION TYPE
active Determines which panel is open, if any. If the
value is set to false, all panels are collapsed.
(This requires the collapsible option to be
set true. If the value is set to an integer, it
opens the corresponding panel, offset from
zero.)
Default value: 0
Boolean,
Integer
animate Options for animating the panels. Setting the
value to false disables animation. Setting
the value to a number sets the length of the
animation in milliseconds with the easing
effect. If the value is a string, the string is the
type of easing animation (see Appendix M,
“Effects”). An object can also be provided
with easing and duration properties.
Default value: {}
Boolean,
Number,
String, Object
collapsible Whether all the accordion sections can be
closed at once.
Default value: false
Boolean
disabled Whether the accordion is disabled.
Default value: false
Boolean
event The event used to trigger the accordion.
Default value: click
String
header Selector referencing the element to use for
the header element for each content panel.
Default value: "> li > :first-child,>
:not(li):even"
Selector,
Element,
jQuery
heightStyle Determines how the height of each panel is
calculated.
"auto"—The height of each panel will be the
height of the tallest panel.
"fill"—The height of each panel is deter-
mined by the accordion’s parent element.
"content"—The height of each panel is
determined by the content within each panel.
Default value: "auto"
String
http://www.it-ebooks.info
elliott
(Elliott)
#1