jsTree + jsTreeGrid->为新创建的节点渲染图标

发布于 2024-12-06 16:14:01 字数 199 浏览 6 评论 0原文

我在管理面板中成功实现了 jsTree + jsTreeGrid 管理产品类别。 唯一的问题是,当我通过鼠标右键上下文菜单创建新节点时,新的 创建的行不包含在 jsTreeGrid 面板中设置图标的列。图标 基于 ID(链接到其他页面),因此在渲染图标时代码必须知道新创建节点的 ID。

请注意:页面刷新后,新节点的图标可见。当然。

非常感谢任何帮助。

I successfully implements jsTree + jsTreeGrid in admin panel for
managing categories for products.
The only one problem is, that when i create new node via right mouse button context menu, the newly
created row does not contain columns with icons set in jsTreeGrid panel. The icons
are ID based (linked to other pages), therefore while rendering icons code have to know ID of newly created node.

Please note: After page refresh icons for new node are visible. Of course.

Any help is really appreciated.

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

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

发布评论

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

评论(1

寄人书 2024-12-13 16:14:01

添加新节点后以编程方式刷新 jsTree 怎么样?在 core 文档 中搜索 refresh

What about programmatically refreshing the jsTree after adding new node? Search for refresh in doc for core

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