1 TreeView - Release Notes
4 * The image preload feature was restored.
6 * Leaf nodes created with expanded=true have the child div hidden initially
7 to work around an IE rendering issue.
13 * Fixed the default value in the documentation for the nowrap property in Node
14 (the default value is false).
18 * Node::insertAfter properly nulls the nextSibling attribute when the
19 inserted before the firstChild.
21 * MenuNodes inserted at the root level will no longer lose the menu behavior.
23 * TextNode::setUpLabel sets the data.label property as well as the label property.
25 * TaskNode example: made the logger optional, and moved the creation of the logger
26 instance to the proper location.
28 * TaskNodes added to a node that is in a fully selected state will update the
29 parent to a partially selected state.
31 * TaskNode example fixed to propagate the labelClick event
36 * removeChildren will now work properly on the root node.
40 * Added custom events for expandComplete and collapseComplete. These events are
41 needed in situations where the implementer needs to resize or reposition
42 something based on the new offset.
44 * Added a "nowrap" property to Node, and set the default to false. Specifies
45 whether or not the content area of the node should be allowed to wrap
48 * Added additional HTML elements to preserve the tree presentation when constrained
53 * TreeView now augments EventProvider, and has custom events for expand,
54 collapse, animStart, animComplete, and labelClick. Existing implementations
55 using abstract methods for these events (if they exist) will still work.
56 New events can be plugged into the tree by the Node implementation. For
57 example, TaskNode adds a checkClick event. EventProvider makes it safe
58 to do this because implementing code can call subscribe() prior to the
61 * YAHOO.util.Event is now a requirement for the widget
63 * TreeView::removeChildren no longer expands and collapses the node.
65 * Documented the moveComplete property
67 * createElement("DIV") changed to createElement("div")
71 * Fixed a javascript error on the HTML node example page.
75 * popNode now clears the tree, previousSibling, nextSibling, and parent
76 properties of the node that is being removed from the tree.
78 * Fixed the paths to the images in the tree.css file that is included in
83 * Added TreeView -> popNode, which differs from removeNode in that the
84 node's children are preserved so the entire branch can be re-inserted
85 into another part of the tree, or another tree.
87 * Added TreeView -> getNodesByProperty, which differs from
88 getNodeByProperty by returning an array of all nodes that have the
89 specified property rather than just the first one.
91 * Added Node -> insertBefore, insertAfter, and appendTo. These method
92 can be used to reorganize the tree.
94 * removeChildren properly resets the node icon when executed against a
97 * Moved depth assignment from the constructor to appendChild so that the
98 value is set properly if the node is moved within the tree.
100 * Fixed broken loop in removeChildren.
102 * RootNode -> loadComplete calls tree.draw for hot-wiring the dynamic load
103 feature for the top level nodes.
105 * The treeview constructor will accept an element instead of an id.
109 * If the child collection changes prior to a refresh(), the icon is now
110 changed appropriately.
112 * Added TreeView removeChildren(node). This will recursively purge the node's
113 children, and reset its dynamic load state.
115 * previousSibling and nextSibling are now adjusted correctly when a
118 * expand()/collapse() now will not expand/collapse the node if false is
119 returned from the onExpand/onCollapse event handlers.
121 * The onExpand and onCollapse events now fire before the node is expanded
122 or collapsed so that the implementer can modify the node's child collection
125 * The childrenRendered property previous was used to indicate both that
126 a dynamically loaded node has received its data, and also to indicate
127 that the children html has been created. This has been split into
128 two properties. dynamicLoadComplete and childrenRendered.
130 * Implemented the renderHidden flag. If set to true, the html for the entire
131 tree will be created when tree.draw() is called, not just the html for the
134 * Added an onLabelClick listener to TextNode
136 * TreeView.removeNode no longer automatically refreshes the tree. It has an
137 optional parameter to perform the refresh.
139 * removeNode can now be executed on nodes that have not been rendered.
141 * You can now delete top-level nodes.
143 * Added onCheckClick listener to the TaskNode example
145 * Added Node.iconMode, which is a property that configures the way
146 dynamically loaded nodes are displayed when they are expanded and contain
149 * TreeView/Node.setDynamicLoad now accepts an optional second parameter to
150 set the iconMode property.
152 * Fixed an issue in the TaskNode.js example that prevented setting the checked
153 state of a node through the constructor.
155 * Fixed an issue in HTMLNode that caused rendering issues when hasIcon was
158 * Added TreeView.removeNode