在根目录添加行到JQuery树表 [英] Add row at root to JQuery treetable

查看:102
本文介绍了在根目录添加行到JQuery树表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用treetable插件,我想在表的根上添加新行,我使用loadBranch,并且可以在树中添加行,但找不到添加方法在根上.

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.

推荐答案

您可以通过将null作为第一个参数发送到loadBranch来向根中添加行:

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

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

这篇关于在根目录添加行到JQuery树表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆