Angular Primeng v11.x如何在树成分中实现TreesElect功能
我正在使用Primeng V11.X,并且正在使用P-Tree显示带有复选框的层次结构视图。但是我想在p-Treeselect中的下拉列表中显示此内容。不幸的是,目前我无法升级Primeng。有办法实现这一目标吗?由于P-Tree的高度过高,因此想移动下拉选项。
当前代码:
<p-tree
#tree
[value]="nodes"
selectionMode="checkbox"
[propagateSelectionUp]="true"
[propagateSelectionDown]="true"
(onNodeUnselect)="onNodeUnselect()"
(onNodeSelect)="onNodeSelect()"
disabled="disabled || readonly"
></p-tree>
谢谢
I am using primeng v11.x and i am using p-tree to display hierarchy view with checkbox. but i want to display this inside a dropdown as in p-treeselect. unfortunately i can't upgrade primeng at the moment. is there a way to achieve this? because the p-tree is taking too much height, wanted to move to dropdown option.
Current code:
<p-tree
#tree
[value]="nodes"
selectionMode="checkbox"
[propagateSelectionUp]="true"
[propagateSelectionDown]="true"
(onNodeUnselect)="onNodeUnselect()"
(onNodeSelect)="onNodeSelect()"
disabled="disabled || readonly"
></p-tree>
expected functionality as in https://www.primefaces.org/primeng/treeselect
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以放置
组件ap-tree
组件。p-overlaypanel
我创建了一个demo 。
You can place the
p-tree
component inside ap-overlayPanel
component.I created a demo here.