Feb 18, 2011, 5:00 PM
[CLOSED] Open window in a parent container
Hello,
I' have this helper method to open new windows:
Thanks
I' have this helper method to open new windows:
function NewWindow(container, winId, winURL, winTitle, winHeight, winWidth, winModal, winMax, winRes, winCollap, winIconCls) {
if (winTitle == '' || winTitle == undefined) { winTitle = 'Teste' }
if (winCollap == '' || winCollap == undefined) { winCollap = false }
if (winRes == '' || winRes == undefined) { winRes = false }
if (winModal == '' || winModal == undefined) { winModal = false }
if (winHeight == '' || winHeight == undefined) { winHeight = 500 }
if (winWidth == '' || winWidth == undefined) { winWidth = 500 }
var win = new Ext.Window({ renderTo: Ext.getBody(),
maximizable: winMax,
resizable: winRes,
collapsible: winCollap,
constrain: false,
title: winTitle,
height: winHeight,
width: winWidth,
modal: winModal,
iconCls: winIconCls,
frame: true,
layout: 'fit',
autoLoad: { maskMsg: "Cargando...", showMask: true, mode: "iframe", url: winURL }
});
win.show();
}
How can open a new windows in a parent container? currently renderTo: is to Ext.getBody(). I have a container parameter prepared to this action.Thanks
Last edited by Daniil; Feb 22, 2011 at 8:23 AM.
Reason: Removed <font> tags, [CLOSED]