Forum /
Ext JS 2.x - Unsupported /
Ext 2.x: Help & Discussion /
How to disable background
How to disable background
Hi all
Please I cannot disable a background when show a new window.
I want to make it as alert in ext but don't know how.
Thanks in advance.
Sencha - Support Team
Post please your window creation code.
var w=new Ext.Window({
width:500,
height:500,
layout:'border',
items:[{
region:'center',
xtype:'panel',
items:[code_panel]
}]
});
w.show();
Sencha - Support Team
Now, I don't know which background you mean. If you have a border layout in the window, background of the window itself is irrelevant as you have regions over it anyway.
Background I mean, The browser background that is constructed with viewport Ext container.
Thanks for your concentration.
Sencha - Support Team
Ext.Viewport is designed to take whole browser window so the same applies: background is determined by components inside the viewport. Post please some pictures of what you really get and what you want to get.
Ok what I mean:
Let we have a browser window with a textfiled and one button when I press on this button a pop up window come to the screen.
I want when this window appear, no one can change the contents of textfiled.
We can say as alert when it appear no one can change the textfiled.
I want the same functionality as alert but by using window.
I hope it will be clear enough.
Thanks in advance.
Sencha - Support Team
Try to set modal:true in Window config.
Thanks for you it work correctly.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us