开发者

Ext JS Cycle through items of a Ext.form.CheckboxGroup

开发者 https://www.devze.com 2023-01-05 14:35 出处:网络
I have a Ext.form.CheckboxGroup with multiple items of Ext.form.Checkbox. Is it possi开发者_JAVA技巧ble to cycle through each item of the Ext.form.CheckboxGroup?

I have a Ext.form.CheckboxGroup with multiple items of Ext.form.Checkbox.

Is it possi开发者_JAVA技巧ble to cycle through each item of the Ext.form.CheckboxGroup?

I have tried the following to no avail:

for ( var i in Ext.getCmp('product_category_group').items.items) {
    console.log(i.getId());
}

Any advice appreciated, thanks.


This works for me : (ExtJs 3.2)

Ext.getCmp('product_category_group').items.each(function(i) {
   console.log(i.getId());
})
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号