TreeBrowser

TreeBrowser

TreeBrowser can take a TreeNode and construct a browsable tree

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:
  • Element

mdcList :MDCList

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

rootNode :TreeNode

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:
Name Type Description
treeNode TreeNode

(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:
  • CustomEvent