Tree.Node.Labelable Class
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
TreeTree
instance with which this node should be associated. -
[config]
Object optionalConfiguration hash.
-
[label='']
String optionalLabel 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: ''