Add row at root to JQuery treetable

六月ゝ 毕业季﹏ 提交于 2019-12-11 19:18:58

问题


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.


回答1:


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

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


来源:https://stackoverflow.com/questions/15519979/add-row-at-root-to-jquery-treetable

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!