Reputation: 63
I'm working with the treetable plugin and I want to add a new row on the root of the table, I use loadBranch
and it works fine to add rows inside the tree but can't find a method to add on the root.
Upvotes: 0
Views: 941
Reputation: 675
You can add rows to the root by sending null as the first argument to loadBranch:
$("#tree").treetable("loadBranch", null, rows)
Upvotes: 4