TreeGrid extension for jquery [email protected]
https://homfen.github.io/dataTables.treeGrid.js
left
: indent of children
expandIcon
: expand icon html
collapseIcon
: collapse icon html
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>'
}
});
MIT license.