访问 SegmentedButton 按钮以更改 Sencha 中的徽章
我已经声明了一个名为“myseg”的新 Ext.SegmentedButton(),其中包含几个项目...在另一个函数中,我想访问“myseg”中每个按钮的徽章并更改值...我该如何做想做那件事吗?如何通过“myseg”访问“buttons”集合?
I've declared a new Ext.SegmentedButton() called "myseg" with a couple of items... In a another function i want to access the badges of each button in "myseg" and change the values... how do I got about doing that? How can I access the "buttons" collection via "myseg" ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
还没有完全测试我自己的答案,但我相信它应该通过以下方式完成:
如果假设您这样做,则此方法应该返回按钮组件:
然后循环......
Haven't fully tested my own anser but I believe it is meant to be done through:
This method should return the button components if let's say you do this:
and then loop through....