Constructor

TreeNode

new TreeNode(toolbox, html, opt_config, opt_domHelper)

A single node in the tree, customized for Blockly's UI.

Parameter

toolbox

Blockly.Toolbox

The parent toolbox for this tree.

html

goog.html.SafeHtml

The HTML content of the node label.

Value must not be null.

opt_config

Optional

Object

The configuration for the tree. See goog.ui.tree.TreeControl.DefaultConfig. If not specified, a default config will be used.

opt_domHelper

Optional

goog.dom.DomHelper

Optional DOM helper.

Extends
goog.ui.tree.TreeNode

Methods

getExpandIconSafeHtml

getExpandIconSafeHtml() returns goog.html.SafeHtml

Suppress population of the +/- icon.

Returns

non-null goog.html.SafeHtml The source for the icon.

onClick_

onClick_(_e)

Expand or collapse the node on mouse click.

Parameter

_e

goog.events.BrowserEvent

The browser event.

Value must not be null.