Show:

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]
)

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

Properties

label

String

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: ''