来自的 js dynatree 插件结构 - 如果其根节点禁用单选按钮选择
我想禁用除叶子之外的所有节点的选择。 我的意思是,只有当节点是树的叶节点时,用户才应该能够选择(单选按钮检查)节点。 我看到文档并指示使用:
{title: "Sub-item 4.3 (hideCheckbox)", hideCheckbox: true },
但是如果您从 js 数据创建树,它会很有用。我使用创建了这棵树
<li data='....'>Text Node
提前致谢!
I want to disable selection of all nodes, except leafs.
I mean, user should be able to select (radiobutton check) nodes only if it's leaf node of the tree.
I see the docs and is indicated to use:
{title: "Sub-item 4.3 (hideCheckbox)", hideCheckbox: true },
But it's usefull if you create a tree from js data. I created the tree using an
markup.
I think, the solution is near if using:
<li data='....'>Text Node
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
data
属性被解析为 JSON,然后用于扩展data
选项,因此应该可以工作。
The
data
attribute is parsed as JSON, and then used to expand thedata
options, soshould work.