JavaXT
|
|||||||||||||||||
Tree ClassUsed to create a hierarchical tree control with nodes and leaves. The nodes and leaves are "left-justified". Root nodes appear on the left and nested elements appear below and to the right of the parent nodes.
ConstructorsUsed to instantiate this class
Config Optionsstyle Style for individual elements within the component. The nodes and leaves in the tree are constructed using "ul" and "li" elements. Note that unlike most of the other components, you should provide CSS class names nodes, leaves, and path.
EventsonClick( item ) Called whenever an item is clicked in the tree.
onExpand( item ) Called whenever a node is expanded in the tree.
onCollapse( item ) Called whenever a node is collapsed in the tree.
Public MethodsaddNodes( nodes, expandAll ) Used to add nodes to the tree.
getItem( path ) Returns a simple json object used to represent an item in the tree for a given path.
|