Skip to content

jQuery plugin for treating tables as trees with optional asynchronous (Ajax) loading of children.

License

Notifications You must be signed in to change notification settings

jdl/jquery-lazy-tree-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery plugin: LazyTreeTable

Adds asynchronous expand/collapse functions to a table.

What’s required in your HTML.

- A unique table ID.
- Each row needs a unique ID.
- Child rows identify their parent with a 'parentid' attribute.

Usage

In your HTML:
 $(document).ready(function() {
   $('#myTable').asyncTableTree({
     childFetchPath: "/path/to/fetch/child/data"
 });

The childFetchPath is the location of the action that will return the child rows of a given
row. This action will be sent a 'parentRowId' param.  It is expected to return one or more TR
tags as HTML. These will be injected into the existing table below the parent row.

About

jQuery plugin for treating tables as trees with optional asynchronous (Ajax) loading of children.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published