ページの読み込み時に作成され、コンポーネント マネージャーに登録されたウィンドウがあります。ウィンドウには closeAction: 'hide' が設定されていますが、ウィンドウを再度開こうとすると、ウィンドウが未定義であるというエラーが表示されます。ExtJs 3.4 の使用
#Initial creation of the window
var comWin = new UserSelectionDialog();
Ext.ComponentMgr.register(comWin);
#Window Class/Config
UserSelectionDialog = Ext.extend(Ext.Window, {
id: 'comWin',
title: 'User Selection',
width: 700,
height: 300,
autoScroll: true,
maximizable: true,
closeAction: 'hide'...
#call to retrieve window
function getCom(){
var comWin = Ext.getCmp('comWin');
alert(comWin.title);
comWin.show();