#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# Tree.Node.Labelable Class

Defined in: `tree/js/extensions/tree-node-labelable.js:6`
Module: tree-labelable
Parent Module: tree

`Tree.Node` extension that adds baked in support for labels like you might see in a treeview or menu.

Security note: The label is stored in raw, unescaped form. If you choose to render the label as HTML, be sure to escape it first with `Y.Escape.html()` unless you actually intend to render raw HTML contained in the label.

## Constructor

### `Tree.Node.Labelable`

(

- `tree`
- `[config]`

)

Defined in `tree/js/extensions/tree-node-labelable.js:6`

#### Parameters:

- `tree` Tree

  `Tree` instance with which this node should be associated.

- `[config]` Object optional

  Configuration hash.

  - `[label='']` String optional

    Label for this node.

- Index
- Properties

## Item Index

### Properties

- label

## Properties

### `label`

String

Defined in `tree/js/extensions/tree-node-labelable.js:31`

Label for this node.

Security note: The label is stored in raw, unescaped form. If you choose to render the label as HTML, be sure to escape it first with `Y.Escape.html()` unless you actually intend to render raw HTML contained in the label.

Default: ''