Jquery-based treetable tree table component

Source: Internet
Author: User
I also searched some materials on the Internet and found some tree table components, but they were not ideal. As a result, I wrote a component that fits my usage in my boredom. The usage is as follows: $ (Function (){

$. Lyg_treetable.inittree ("# treetable ");

VaR map = [-, 5];

$. Lyg_treetable.inittrs ("# treetable1", MAP );
$. Lyg_treetable.inittree ("# treetable1 ");
}); Here are two tables, $. lyg_treetable.inittree ("# treetable ");
Is the first table, where the ID and PID have been written, more suitable for Java development methods, VAR map = [-,]; $. lyg_treetable.inittrs ("# treetable1", MAP); $. lyg_treetable.inittree ("# treetable1 "); This method is more suitable for static pages, where map represents the ID of its parent item. If it is-1, it indicates that there is no parent item such as: ID :,
If no ID is set manually, the ID is set cyclically. The default value starts from 0,
PID:-, 0, has been tested. It runs well in several mainstream browsers: treetable(myapps.zip

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.