Add line in root directory in JQuery

I am working with a platinum plugin and I want to add a new row to the root table I am using loadBranch

and it works fine to add rows inside the tree, but cannot find a way to add at the root.


source to share

1 answer

You can add lines to the root by sending null as the first argument to loadBranch:

$("#tree").treetable("loadBranch", null, rows)




All Articles