Skip to content

eduardomps/dataTables.treeGrid.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dataTables.treeGrid.js

TreeGrid extension for jquery [email protected]

Demo

https://homfen.github.io/dataTables.treeGrid.js

Options

left: indent of children

expandIcon: expand icon html

collapseIcon: collapse icon html

Usage

the row data should contain a property "children" as blow:

{
"data": 
    [
        {
            "name": "Tiger Nixon",
            ...
            "children": [
                {
                    "name": "Hermione Butler",
                    ...
                }
            ]
        }
    ]
}            

the js initialization part as blow:

$('#example').DataTable({
    'treeGrid': {
        'left': 10,
        'expandIcon': '<span>+</span>',
        'collapseIcon': '<span>-</span>'
    }
});

License

MIT license.

About

TreeGrid extension for jquery DataTables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%