问题标签 [angular-ui-tree]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
angularjs - 具有相同标题的AngulrJs Ui-tree搜索问题
我需要在所有节点上搜索,但在这里我有两个同名的标题(SameTitle)demolist.js
。我想在整个节点上进行搜索操作。
预期结果: (SameTitle) 应出现两次,其父名称如demolist.js
.
但它只出现一次,第一个 Node 父名称。有没有办法解决这个问题?
angular-ui - 预选并仅在 Angular ui 树中显示具有某些 id 的列表
所以,我有一个带有复选框的角树,可以选择父母和孩子。
我在这里要做的是预先选择树的一些项目,例如: preselectids=['105'] 选择项目或者如果它的父母选择所有孩子。
当我通过 showsetIds=['105'] 时,我还想只显示该树的节点。
我举了一个例子,但这仅适用于一个节点,因为代码是以这种方式编写的。我曾尝试在我的本地解决此问题,但无法对其进行修改以满足我的需求。
请任何人都可以指导我完成这个。
https://plnkr.co/plunk/nVDL1GMfgEQSt7io
}) }).call(this);
angularjs - 如何使用递归函数在使用 angulat ui 树的树数组中选择父级?
所以,我正在尝试创建一个分层树。Whena node is selected that has children, then all the children of the node is selected, but when I select all the children I also want to select the parent.
这是 plunker 的链接:[https://plnkr.co/plunk/iMBFfy6cf7urOHhZ][1]
我创建了一个目录来标记树
树控制器.js
索引.html
TreeDirective.js
节点.html