【发布时间】:2015-05-22 21:35:36
【问题描述】:
在 ExtJS4 中可以在 Controller 中执行:
Ext.define('App.controller.Main', {
extend: 'Ext.app.Controller',
views: ['App.view.SampleWindow'],
refs: [{
ref: 'sampleWindow',
xtype: 'samplewindow',
autoCreate: true
}],
init: function(application) {
var win = me.getSampleWindow();
win.show();
}
});
如何在 ViewController 中完成此操作? Viewcontroller 没有 refs 属性。而lookupReference 将不起作用。
【问题讨论】:
标签: extjs viewcontroller extjs5