0
私のページにはcomboBoxがありますか?この ここアイテムはドロップダウンリストに表示されませんextJS
var sourcesStore = new Ext.data.Store({
autoLoad:true,
storeId: 'sourcesStore',
listeners:Ext.ux.loaderListener,
proxy:new Ext.data.HttpProxy({
url:'/traffic/traffic_source_list/1',
}),
reader:new Ext.data.JsonReader(
{
root:'items',
id:'source_',
messageProperty:'msg',
successProperty:'success',
fields: ['id', 'name']
},
['id', 'name']
)
});
コンボのconfigs
var selectStyleComboboxConfig = {
fieldLabel: 'My Dropdown',
name: 'type',
allowBlank: false,
editable: false,
// This is the option required for "select"-style behaviour
triggerAction: 'all',
typeAhead: false,
mode: 'local',
width: 120,
listWidth: 140,
hiddenName: 'traffic_source',
/*store: [
['val1', 'First Value'],
['val2', 'Second Value']
],*/
store: sourcesStore,
readOnly: true
};
と、アイテム
items: [
fileField,
new Ext.form.DateField({
xtype: 'datefield',
fieldLabel: 'Start date',
name: 'startdate',
format: 'd-m-Y'
}),
new Ext.form.DateField({
xtype: 'datefield',
fieldLabel: 'End date',
name: 'enddate',
format: 'd-m-Y'
}),
new Ext.form.ComboBox(selectStyleComboboxConfig)]
を設定する店のように見える問題は、それがドロップダウンリストで選択する項目が表示されないということです。プロジェクトでext 2.3.0を使用します。クリックして選択すると、かなり長いドロップダウンが表示されますが、それは空です。 extJSには初めての人物です。私の英語で申し訳ありませんが、さらに詳しい情報や詳細が必要な場合は - 私に知らせてください!