TreeBrowser

TreeBrowser

TreeBrowser can take a TreeNode and construct a browsable tree

Constructor

new TreeBrowser(rootNode, options)

Source:
Create a TreeBrowser with the given TreeNode as root
Parameters:
Name Type Description
rootNode TreeNode
options TreeBrowser~options

Members

html :Element

Source:
The DOM Element of this Tree
Type:
  • Element

mdcList :MDCList

Source:
The MDCList object from Material Design
Type:
  • MDCList

rootNode :TreeNode

Source:
The root node used to build the tree
Type:

Methods

(static) findAllTreeBrowsers() → {Array.<TreeBrowser>}

Source:
Find all TreeBrowsers currently in the DOM
Returns:
Type
Array.<TreeBrowser>

findTreeNodeForContext(context) → {Array.<TreeNode>}

Source:
Finds all TreeNode's that has the given context
Parameters:
Name Type Description
context
Returns:
Type
Array.<TreeNode>

setSelected(treeNode)

Source:
Sets the given TreeNode as the current selection
Parameters:
Name Type Description
treeNode TreeNode

Events

EventSystem:"TreeBrowser.Selection"

Source:
Properties:
Name Type Description
selection TreeNode The selected TreeNode
Called when a TreeNode is selected in a TreeBrowser
Type:
  • CustomEvent