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

A method to minimize ExtJS Window_extjs

WBOY
Release: 2016-05-16 18:41:37
Original
853 people have browsed it

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();
}
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template