Try loading as AMD module or fall back to default loading
The actual widget class
Default options for the widget
toggleHiddenClass
: class added to hidden toggletoggleVisibleClass
: class added to visible togglepaneHiddenClass
: class added to hidden contentpaneVisibleClass
: class added to visible contentevent
: the event
to react tolabelledby
: element to use as the label if the toggle has
no actual texttarget
: the target to use, specified as a selectortooltip
: the tooltip to useoverlay
: whether or not the targets are toggled in an overlayInitializer function.
Add aria attributes
Attach evenets to the widget
Force activation on keyboard focus
Adjust target positions relative to the toggle
Find the widget structure using the specified configuration
Find the targets of the tooltip, specified in one of the following ways:
aria-describedby
attribute (i.e. "id1")tooltip
option content (i.e. "my tooltip text")Handle targets specified using the aria-controls attribute
Handle targets specified using the tooltip option
Handle targets specified using the data-target attribute
Create elements required by the structure if they are not present
Handle escape key press
Cleanup the widget and remove remaining references
Install the widget into the JS library
Tooltip
The
Tooltip
class provides a tooltip widget.author: Julien Ramboz version: 1.0 references: WAI-ARIA tooltip role, AOL's Tooltip style guide usage: Tooltip examples requires: Toggle