将组件渲染到 ExtJS 网格中

发布于 2024-10-07 08:16:06 字数 107 浏览 0 评论 0原文

我想将拆分按钮渲染到网格中的列中以对每一行执行操作。我似乎无法弄清楚如何构建一个自定义单元格渲染器来完成此任务。

每个单元格将具有完全相同的拆分按钮,但将作用于拆分按钮所在行的 ID。

I want to render a split button into a column in a grid to perform actions on each row. I can't seem to figure out how to build a custom cell renderer that will accomplish this.

Each cell will have the exact same split button, but will act on the id of the row the split button is in.

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

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

发布评论

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

评论(1

那一片橙海, 2024-10-14 08:16:07

您需要为该列设置自定义渲染器,请查看以下示例:http://techmix.net/blog/2010/11/25/add-button-to-extjs-gridpanel-cell-using-renderer/

< a href="https://i.sstatic.net/Dhxsd.png" rel="nofollow noreferrer">screenshot

You need to setup a custom renderer for the column, have a look at this example: http://techmix.net/blog/2010/11/25/add-button-to-extjs-gridpanel-cell-using-renderer/

screenshot

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