1
我有這樣的代碼添加項目動態地從JavaScript數組中的煎茶觸摸
var filter = {
items: [{
xtype: 'fieldset',
title: 'Choose',
items: [
// I need to put checkboxes here
]
}]
};
我需要動態地添加複選框項:
{
xtype: 'checkboxfield',
name: 'city[]',
label: 'City name',
checked: false,
}
,我需要補充的是存儲在JS數組中的數據,並且可以選中或取消選中複選框
請幫忙, 謝謝您提前
謝謝,我用第一個例子。 我現在怎麼知道一些複選框是否已被選中? – mgalesic 2011-06-14 14:55:36
我不做extjs,但可能檢查= Ext.getCmp('city []') – mplungjan 2011-06-14 16:51:16