1 TreeView - Release Notes
5 * removeChildren will now work properly on the root node.
9 * Added custom events for expandComplete and collapseComplete. These events are
10 needed in situations where the implementer needs to resize or reposition
11 something based on the new offset.
13 * Added a "nowrap" property to Node, and set the default to false. Specifies
14 whether or not the content area of the node should be allowed to wrap
17 * Added additional HTML elements to preserve the tree presentation when constrained
22 * TreeView now augments EventProvider, and has custom events for expand,
23 collapse, animStart, animComplete, and labelClick. Existing implementations
24 using abstract methods for these events (if they exist) will still work.
25 New events can be plugged into the tree by the Node implementation. For
26 example, TaskNode adds a checkClick event. EventProvider makes it safe
27 to do this because implementing code can call subscribe() prior to the
30 * YAHOO.util.Event is now a requirement for the widget
32 * TreeView::removeChildren no longer expands and collapses the node.
34 * Documented the moveComplete property
36 * createElement("DIV") changed to createElement("div")
40 * Fixed a javascript error on the HTML node example page.
44 * popNode now clears the tree, previousSibling, nextSibling, and parent
45 properties of the node that is being removed from the tree.
47 * Fixed the paths to the images in the tree.css file that is included in
52 * Added TreeView -> popNode, which differs from removeNode in that the
53 node's children are preserved so the entire branch can be re-inserted
54 into another part of the tree, or another tree.
56 * Added TreeView -> getNodesByProperty, which differs from
57 getNodeByProperty by returning an array of all nodes that have the
58 specified property rather than just the first one.
60 * Added Node -> insertBefore, insertAfter, and appendTo. These method
61 can be used to reorganize the tree.
63 * removeChildren properly resets the node icon when executed against a
66 * Moved depth assignment from the constructor to appendChild so that the
67 value is set properly if the node is moved within the tree.
69 * Fixed broken loop in removeChildren.
71 * RootNode -> loadComplete calls tree.draw for hot-wiring the dynamic load
72 feature for the top level nodes.
74 * The treeview constructor will accept an element instead of an id.
78 * If the child collection changes prior to a refresh(), the icon is now
79 changed appropriately.
81 * Added TreeView removeChildren(node). This will recursively purge the node's
82 children, and reset its dynamic load state.
84 * previousSibling and nextSibling are now adjusted correctly when a
87 * expand()/collapse() now will not expand/collapse the node if false is
88 returned from the onExpand/onCollapse event handlers.
90 * The onExpand and onCollapse events now fire before the node is expanded
91 or collapsed so that the implementer can modify the node's child collection
94 * The childrenRendered property previous was used to indicate both that
95 a dynamically loaded node has received its data, and also to indicate
96 that the children html has been created. This has been split into
97 two properties. dynamicLoadComplete and childrenRendered.
99 * Implemented the renderHidden flag. If set to true, the html for the entire
100 tree will be created when tree.draw() is called, not just the html for the
103 * Added an onLabelClick listener to TextNode
105 * TreeView.removeNode no longer automatically refreshes the tree. It has an
106 optional parameter to perform the refresh.
108 * removeNode can now be executed on nodes that have not been rendered.
110 * You can now delete top-level nodes.
112 * Added onCheckClick listener to the TaskNode example
114 * Added Node.iconMode, which is a property that configures the way
115 dynamically loaded nodes are displayed when they are expanded and contain
118 * TreeView/Node.setDynamicLoad now accepts an optional second parameter to
119 set the iconMode property.
121 * Fixed an issue in the TaskNode.js example that prevented setting the checked
122 state of a node through the constructor.
124 * Fixed an issue in HTMLNode that caused rendering issues when hasIcon was
127 * Added TreeView.removeNode