将组件渲染到 ExtJS 网格中
我想将拆分按钮渲染到网格中的列中以对每一行执行操作。我似乎无法弄清楚如何构建一个自定义单元格渲染器来完成此任务。
每个单元格将具有完全相同的拆分按钮,但将作用于拆分按钮所在行的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要为该列设置自定义渲染器,请查看以下示例: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">
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/