#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# File: tree/js/extensions/tree-labelable.js

    /*jshint expr:true, onevar:false */

    /**
    Extension for `Tree` that adds baked-in support for node labels like you might
    see in a treeview or menu.

    @module tree
    @submodule tree-labelable
    @main tree-labelable
    **/

    /**
    Extension for `Tree` that adds baked-in support for node labels like you might
    see in a treeview or menu.

    @class Tree.Labelable
    @constructor
    @extensionfor Tree
    **/

    function Labelable() {}

    Labelable.prototype = {
        initializer: function () {
            this.nodeExtensions = this.nodeExtensions.concat(Y.Tree.Node.Labelable);
        }
    };

    Y.Tree.Labelable = Labelable;