Tree Class

Used to create a simple tree control.

Constructors

Tree( parent, config )
Used to instantiate this class
parentDOM element in which to render this component
configConfiguration settings (optional). See config options for more information.

Config Options

Events

onClick( item )
onExpand( item )
onCollapse( item )

Public Methods

addNodes( nodes )
getItem( path )
Returns an item in a given path.
show( item )
Used to expand a given item in the tree. If no item is specified, then the
hide( item )
getPath( item )
Returns an array of parent nodes that form a path to the given item.