Try loading as AMD module or fall back to default loading
The actual widget class
Some default options
autocollapse
: should top nodes be automatically collapsed
on selection of other nodesInitializer function.
Add aria attributes
Make first item focusable
Attach evenets to the widget
Show the submenu for the current item if any
Hide the submenu for the current item if any
Hide all submenus except the ones in the path of the current item (auto collapse)
Select the specified item and open the tree if necessary
Find the widget structure using the specified configuration
Find the tree groups, specified in one of the following ways:
role="group"
groups
option, specified as a selectorFind the tree items, specified in one of the following ways:
role="treeitem"
items
option, specified as a selectorCreate elements required by the structure if they are not present
Handle left key press
Handle right key press
Handle up key press
Handle down key press
Handle enter key press
Handle home key press
Handle end key press
Handle key press on numbers
Handle key press on letters
Handle asterisk key press
Cleanup the widget and remove remaining references
Install the widget into the JS library
Tree
The
Tree
class provides a tree widget.author: Julien Ramboz version: 1.0 references: WAI-ARIA tree role, AOL's Tree View style guide usage: Tree examples requires: Toolbar