Jx.Tree

Extends: Jx.TreeFolder

Implements: Jx.Addable

Jx.Tree displays hierarchical data in a tree structure of folders and nodes.

Example

Extends: Jx.TreeFolder

License

Copyright © 2008, DM Solutions Group Inc.

This file is licensed under an MIT style license

Summary
Jx.TreeExtends: Jx.TreeFolder
Constructor
Jx.TreeCreate a new instance of Jx.Tree
Functions
finalizeClean up a Jx.Tree instance
clearClear the tree of all child nodes
updateUpdate the CSS of the Tree’s DOM element in case it has changed position
appendAppend a node at the end of the sub-tree

Constructor

Jx.Tree

Create a new instance of Jx.Tree

Parameters

options: options for Jx.Addable

Functions

finalize

finalize: function()

Clean up a Jx.Tree instance

clear

clear: function()

Clear the tree of all child nodes

update

update: function(shouldDescend)

Update the CSS of the Tree’s DOM element in case it has changed position

Parameters

shouldDescend{Boolean} propagate changes to child nodes?

append

append: function(node)

Append a node at the end of the sub-tree

Parameters

node{Object} the node to append.
finalize: function()
Clean up a Jx.Tree instance
clear: function()
Clear the tree of all child nodes
update: function(shouldDescend)
Update the CSS of the Tree’s DOM element in case it has changed position
append: function(node)
Append a node at the end of the sub-tree
A mix-in class that provides a helper function that allows an object to be added to an existing element on the page.
Extends: Jx.TreeItem