jstree 类型插件
这是我的 jstree 当前的 JSON 输入(使用 jstree-grid 作为数据):
{
data: "StrukturNavn",
attr: {id:"1", class:"structureNode", contentItemId:"123", rel:"root"},
children: [
{
data: "Seksjon 1",
attr: {id:"2", class:"structureNode", contentItemId:"231"}
}
]
}
这是相关的 jstree 代码:
types: {
root : {delete_node: false}
},
plugins: ["json_data", "crrm", "ui", "themes", "grid", "types"],
但是,由于某种原因,根节点仍然是可删除的,我做错了什么?
谢谢 :-)
This is my current JSON input for my jstree (using jstree-grid for the data):
{
data: "StrukturNavn",
attr: {id:"1", class:"structureNode", contentItemId:"123", rel:"root"},
children: [
{
data: "Seksjon 1",
attr: {id:"2", class:"structureNode", contentItemId:"231"}
}
]
}
And this is the relevant jstree code:
types: {
root : {delete_node: false}
},
plugins: ["json_data", "crrm", "ui", "themes", "grid", "types"],
But, for some reason, the root node is still deletable, what am I doing wrong?
Thanks :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了问题,我只是没有正确配置插件。
应该是
I found the problem, I was simply not configuring the plugin correctly.
should be