0
내 컨테이너에 두 개의 버튼을 추가했는데 이제는 작동하지 않는 목록 항목을 탭합니다. 도움을 청하십시오. 코드캔트 탭 목록 항목을 신나에
Ext.define('X.SelectCategories', {
extend: 'Ext.Container',
xtype: 'selectcategorypanel',
id: 'SelectCategories',
requires:[
],
initialize:function(){
this.callParent();
jsonObject = Ext.create('Tablet').make_webservice_call('get_categories');
Ext.getCmp('select_category_list').setData(jsonObject.info);
console.log(jsonObject.info);
//this.getNavigationBar.hide();
},
config: {
//title : 'Select Categories',
//iconCls: 'team',
//styleHtmlContent: true,
// scrollable: true,
layout: {
type: 'fit'
},
items: [
{
//fullscreen: true,
mode: 'MULTI',
/*
layout: {
type: 'fit'
},
*/
//title:'Select Categories',
xtype: 'list',
itemTpl: '{name}',
autoLoad: true,
id:'select_category_list',
store: {
fields: ['name','title']
}
},
{
xtype: 'container',
//fullscreen: true,
layout: {
type: 'vbox'
},
flex : 1,
layout: {
type : 'hbox',
align: 'bottom'
},
defaults: {
xtype : 'button',
flex : 1,
margin: 10
},
items: [
{ui: 'round',ui:"confirm" ,text: 'Save',id: 'categorysaveButton'},
{ui: 'round', ui:"decline" ,text: 'Reset',id: 'categoryresetButton'}
]
}
]
}
})
을 확장 해보십시오 당신이'사항 setData를 호출하는 이유 상점이있는 경우() '? 또한'autoLoad'는 목록 설정이 아닙니다 – ThinkFloyd
나는 상점을 가지고 있습니다. Ext.create ('Tablet'). make_webservice_call ('get_categories')는 서버에서 JSON으로 데이터를 제공합니다. 목록이 올바르게 표시됩니다. – Harikrishnan