如何获取 Flex 树中可见节点的列表?

发布于 2024-08-29 17:23:45 字数 152 浏览 2 评论 0原文

我有一个用 Flex 构建的基本树。树工作得很好。我正在尝试获取所有可见节点的列表。我知道有一个 Tree.openItems,但这还不够,因为(例如)如果您打开树中的所有项目然后关闭根,则仍然会计算不可见的打开项目。

我只是想要一个所有可见项目的列表。任何帮助将不胜感激!

I have a basic Tree built in Flex. The Tree works fine. I'm attempting to get a list of all of the visible nodes. I know there is a Tree.openItems, but that does not suffice because (for example) if you open all the items in your tree and then close the root, the invisible opened items are still counted.

I simply want a list of all the visible items. Any help would be greatly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故笙诉离歌 2024-09-05 17:23:45

循环遍历数据项并为每个数据项调用 Tree.isItemVisible(item)

Loop though the data items and call Tree.isItemVisible(item) for each.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文