Constructor
new TreeBrowser(rootNode, options)
- Description:
- Create a TreeBrowser with the given TreeNode as root
- Source:
Parameters:
| Name |
Type |
Description |
rootNode |
TreeNode
|
|
options |
TreeBrowser~options
|
|
Members
html :Element
- Description:
- The DOM Element of this Tree
- Source:
The DOM Element of this Tree
Type:
mdcList :MDCList
- Description:
- The MDCList object from Material Design
- Source:
The MDCList object from Material Design
Type:
- Description:
- The root node used to build the tree
- Source:
The root node used to build the tree
Type:
Methods
findTreeNode(key) → {Array.<TreeNode>}
- Description:
- Finds all TreeNodes that have the given lookupKey
- Source:
Parameters:
| Name |
Type |
Description |
key |
|
|
Returns:
-
Type
-
Array.<TreeNode>
findTreeNodeForContext(context) → {Array.<TreeNode>}
- Description:
- Finds all TreeNode's that has the given context
- Source:
Parameters:
| Name |
Type |
Description |
context |
|
|
Returns:
-
Type
-
Array.<TreeNode>
setSelected(treeNode)
- Description:
- Sets the given TreeNode as the current selection
- Source:
Parameters:
(static) findAllTreeBrowsers() → {Array.<TreeBrowser>}
- Description:
- Find all TreeBrowsers currently in the DOM
- Source:
Returns:
-
Type
-
Array.<TreeBrowser>
Events
EventSystem:"TreeBrowser.Selection"
- Description:
- Called when a TreeNode is selected in a TreeBrowser
- Source:
Properties:
| Name |
Type |
Description |
selection |
TreeNode
|
The selected TreeNode |
Type: