Ztree is the core of jquery Code To implement a set of tree plug-ins that can complete most of the common functions.
-
- Compatible with IE, Firefox, chrome, and other browsers (no special maintenance is required for IE 6 compatibility issues)
-
- Multiple tree instances can be generated simultaneously on one page.
-
- JSON data is supported.
-
- Supports one-time static generation and Ajax asynchronous loading
- Support for multiple event responses and feedback
-
- Supports Tree node movement, editing, and deletion.
-
- Supports any skin replacement/personalized icons (depending on CSS)
-
- Supports extremely flexible checkbox or radio Selection
- Simple parameter configuration for flexible and Variable Functions
Compared with v2.6.beta, the official version of ztree v2.6 does not have many modifications, mainly because several bugs have been modified. In addition, the check function has been improved, and users who want to use checkbox or radio but some nodes do not display checkbox/radio can easily implement it using the official version v2.6. (Some friends may think that I don't put pictures when I release ztree. This is a new feature .) Function demo can directly go to the http://baby666.cn operation, you can also go to googlehttp: // code.google.com/p/jquerytree/downloads/list download.
Ztree v2.6 is the final version of v2.x series. In the next step, we will fully develop V3.0 without further backward compatibility. If a major bug is found, v2.6 will be corrected, but its function will not be added.
Some friends may not use v2.6.beta to publish all the v2.6 modifications:
* [Modify v2.6 beta] after you use addhoverdom/removehoverdom to add a custom control, the node will lose focus, but the custom control will not be removed.
Resolved because of a bug in the onhoverout event definition Logic
* Modify v2.6 BETA: Unknown runtime error occurs in IE when layers are hidden and displayed for the large ztree container is switched. (Lines: 547)
Resolved. use setTimeout to avoid conflicts with other controls.
* [V2.6 beta] ztreenodecache may cause memory leakage when refresh is repeated.
* [Corrected v2.6 beta] After the confirmrename verification fails, false is returned, and the updatenode is used to restore the original state exception of the node. The bug of other nodes cannot be selected.
* [Added v2.6 beta] nocheck attribute to enable custom display of checkbox/Radio on nodes.
* [Added v2.6 beta] cancelinput interface, which allows canceling the editing status through Js.
* [Optimization] efficiency of one-time loading of large data volumes
* [Optimization] efficiency of parent-child association during checkbox Selection
* [Modify] jquery 1.3.2/jquery 1.6 is supported.
* [Modify] ztree JS File naming convention, in line with the jquery plug-in Naming Standard: jquery. ztree-2.6.js
* [Modify] The expandnode method adds the focus parameter (Boolean). To ensure backward compatibility, the focus is focused on the node by default when it is expanded. If you do not need to focus, set focus to false.
* [Modify] ztreeid = 0 in constructor and refresh. As a result, when multiple trees are implemented, the treeid count is cleared and the duplicate ID bug occurs.
* [Modify] The contextmenu/mousedown/mouseup event has no unbind bug. If you refresh multiple times, an exception occurs.
* [Modify] When you click another node while editing the name, the bug of the modified name cannot be saved.
* [Modify] When the IE browser node is renamed, if you use the mouse to select all the content to edit and release the left button outside the current text control, the browser will see a crash bug.
(In this special operation, the jquery. Parent () method can always obtain the parent, resulting in an endless loop)
* [Modify] the bug where checktype: {"Y": "", "n": ""} cannot be selected or canceled.
* [Add] The setting. asyncdatafilter attribute. After the data is obtained asynchronously, it is provided to the user for processing and then fed back to the ztree for adding.
* [Add] setting. the dragcopy/dragmove attribute specifies whether to copy or move the node after dragging. If both attributes are false, tree cannot be dragged. If both attributes are true, press ctrl to drag and drop the copy, otherwise move
* [Add] treenode. iconopen/iconclose attribute to facilitate the replacement of custom folder icons during expansion and collapse
* [Add] adds the beforedblclick and dblclick double-click events to ztree for special use. This event is similar to the right-click rightclick event.
* [Add] The confirmrename Event Callback Function to provide the verification function for modifying the name
* [Add] confirmdragopen event. When the target is the parent node during the Drag and Drop Process, you can control whether to expand automatically.
* [Add] inputnodename interface to rename the node
* [Added] copynode interface, similar to the move function, which allows copying nodes