lilithabaddon
lilithabaddon

Reputation: 63

Add row at root to JQuery treetable

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

Answers (1)

larsjr
larsjr

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

Related Questions