Constructor

TreeControl

new TreeControl(toolbox, config)

Extension of a TreeControl object that uses a custom tree node.

Parameter

toolbox

Blockly.Toolbox

The parent toolbox for this tree.

config

Object

The configuration for the tree. See goog.ui.tree.TreeControl.DefaultConfig.

Extends
goog.ui.tree.TreeControl

Methods

createNode

createNode(opt_html) returns goog.ui.tree.TreeNode

Creates a new tree node using a custom tree node.

Parameter

opt_html

Optional

string

The HTML content of the node label.

Returns

non-null goog.ui.tree.TreeNode The new item.

enterDocument

enterDocument()

Adds touch handling to TreeControl.

setSelectedItem

setSelectedItem(node)

Display/hide the flyout when an item is selected.

Parameter

node

goog.ui.tree.BaseNode

The item to select.