Angular Primeng v11.x设置滚动高度为p-Tree不显示滚动
我正在使用Primeng V11.X并使用p-Tree显示层次结构值。由于列表很大,我想固定高度。我正在使用以下内容,但滚动条未出现在p树中。
<div class="tree-component">
<div>
<p-tree
#tree
[value]="nodes"
selectionMode="checkbox"
[propagateSelectionUp]="true"
[propagateSelectionDown]="true"
(onNodeUnselect)="onNodeUnselect()"
(onNodeSelect)="onNodeSelect()"
disabled="disabled || readonly"
scrollHeight="200px"
[virtualScroll]="true"
></p-tree>
</div>
</div>
i am using primeng v11.x and using p-tree to display hierarchy values. As the list is quite big, i want to fix a height. i am using following but the scroll bar not appearing in the p-tree.
<div class="tree-component">
<div>
<p-tree
#tree
[value]="nodes"
selectionMode="checkbox"
[propagateSelectionUp]="true"
[propagateSelectionDown]="true"
(onNodeUnselect)="onNodeUnselect()"
(onNodeSelect)="onNodeSelect()"
disabled="disabled || readonly"
scrollHeight="200px"
[virtualScroll]="true"
></p-tree>
</div>
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论