我的问题类似于Extjs 4 How to get id of parent Component?。
但我正在寻找解决方案。因为问题中给出的答案似乎没有用
在我的例子中,我在我的每个字段集中都有按钮,而且我还动态地创建了这些字段集,其中包含按钮。
现在,在fieldset内的按钮的单击事件上,我想要获取其相应的fieldset id
发布于 2011-07-18 20:43:13
马赫什
在我们的例子中,问题是,它没有扩展Ext.form.FieldSet。看看这个Extjs 4 How to get id of parent Component?
As Zango said, **button.up("[xtype='fieldset']")** will work for you.谢谢,库纳尔
https://stackoverflow.com/questions/6703863
复制相似问题