Jquery tree plugin

Source: Internet
Author: User

Jquery tree plug-in -- ztree v2.6 official version released!

Ztree
Compared with v2.6.beta, the official version of v2.6 does not have many modifications, mainly because several bugs have been modified. In addition, the check function has been improved to use checkbox or
Radio, but some nodes do not show checkbox/Radio friends, using v2.6 official version can be very easy to achieve. (Some people think that when I published ztree
If you don't want to put pictures, it's quite uncomfortable. This new function will be available this time .) Function demo can go directly to the http://baby666.cn
You can also directly 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:

[Fixed 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

[Fixed 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.

[Fixed v2.6 beta] After the confirmrename verification fails to return false, the updatenode is used to restore the original state exception of the node and the bug where 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] Support for jquery 1.3.2/jquery 1.6

[Modify] ztreejs File naming rules, 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 downward compatibility, the focus is focused on the node by default. 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 duplicate ID bug occurs when the treeid count is cleared.

[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 select all the edited content with the mouse and release the left button outside the current text control, the browser will have a crash bug.

(In this special operation, the jquery. Parent () method can always obtain the parent, resulting in an endless loop)

[Modify] After setting checktype: {"Y": "", "n": ""}, the checkallnodes cannot be all selected or canceled.

[Add] setting. asyncdatafilter attribute. After asynchronously obtaining data, 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] The treenode. iconopen/iconclose attribute makes it easy to change the folder icon when it is expanded or collapsed.

[Add] adds the beforedblclick and dblclick double-click events to ztree for special use. This event is similar to the right-click rightclick event.

[Added] The confirmrename Event Callback Function to provide the verification function for modifying the name.

[Add] The confirmdragopen event allows you to control whether to expand automatically when the target is the parent node during the Drag and Drop Process.

[Added] inputnodename interface to rename the node

[Added] copynode interface, similar to the move function, allows copying nodes

Source: Open Source Chinese community

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.