Home  >  Article  >  Web Front-end  >  A method to minimize ExtJS Window_extjs

A method to minimize ExtJS Window_extjs

WBOY
WBOYOriginal
2016-05-16 18:41:37842browse

Here is a minimization method achieved by re-creating its minimize function:
HTML:

Copy code The code is as follows :

JS:
Copy code The code is as follows:

function openWin()
{
if(!win)
{
win = new Ext.Window({
title:"Pop-up Window",
el:"divWin",
width:500,
height:300,
constrain:true,
maximizable:true,
closeAction:'hide',
minimizable:true
});

win.minimize = function(e)
{
this.hide();
Ext.get("aRestore").show();
}
}
win.show(Ext .get("btn"));
Ext.get("aRestore").hide();
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn