Try loading as AMD module or fall back to default loading
The actual widget class
Default options for the widget
event
: the event
to react totarget
: the target to use, specified as a jQuery selectorlabelledby
: the element to use as the label,
if the toggle has no actual texttoggleHiddenClass
: the class added to the hidden toggletoggleVisibleClass
: the class added to the visible togglepaneHiddenClass
: the class added to the hidden contentpaneVisibleClass
: the class added to the visible contentoverlay
: whether or not the targets are toggled in an overlayInitializer function.
Add aria attributes
Attach evenets to the widget
Find the widget structure using the specified configuration
Cleanup the widget and remove remaining references
Install the widget into JS library
Collapse
The
Collapse
class provides a multi-purpose content collapse widget.author: Julien Ramboz version: 1.0 references: WAI-ARIA button role, AOL's Button style guide usage: Collapse examples requires: Toggle