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