【发布时间】:2011-09-17 07:21:51
【问题描述】:
如何在 ExtJs 4 工具栏中动态加载项目?我想从 JSON 加载项目。
我已经尝试过加载器,但它只是变得头疼。
Ext.define('Backend.view.Nav' ,{
alias: 'widget.Nav',
extend: 'Ext.toolbar.Toolbar',
initComponent: function() {
this.items = [
{
iconCls: 'freewinder',
text: 'Freewinder'
},
{
iconCls: 'application',
text: 'Applikationen',
xtype: 'splitbutton'
},
{
iconCls: 'component',
text: 'Komponenten',
xtype: 'splitbutton'
},
'-',
{
emptyText: 'Suche ...',
xtype: 'textfield'
}];
this.callParent(arguments);
}
});
【问题讨论】:
标签: javascript json extjs extjs4