收藏本站 收藏本站
积木网首页 - 软件测试 - 常用手册 - 站长工具 - 技术社区
首页 > JavaScript > extjs > 正文

首页 - PHP - 数据库 - 操作系统 - 游戏开发 - JS - Android - MySql - Redis - MongoDB - Win8 - Shell编程 - DOS命令 - jQuery - CSS样式 - Python - Perl

Access - Oracle - DB2 - SQLServer - MsSql2008 - MsSql2005 - Sqlite - PostgreSQL - node.js - extjs - JavaScript vbs - Powershell - Ruby

ExtJS Window 最小化的一种方法

下面是通过重新它的minimize函数来实现的一种最小化方法:
HTML:

<input type="button" id="btn" value="OpenWin" onclick="openWin();" />
<div id="divWin"></div>
<a href="javascript:openWin();" id="aRestore" style="display:none">恢复</a>

JS:

function openWin()
{
if(!win)
{
win = new Ext.Window({
title:"弹出窗口",
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();
}

ExtJS的FieldSet的column列布局
以下是自己扩展的FieldSet:ME.Base.FieldSet=Ext.extend(Ext.form.FieldSet,{layout:'column',fieldSetItems:[],autoScroll:false,defaults:{layout:'form',labelAlign:'right',labelWidth:65,columnWidth

ExtJS Grid使用SimpleStore、多选框的方法
///referencepath="./vswd-ext_2.0.2.js"/Ext.onReady(function(){vardata=[[1,"wilson.fu",10],[2,"wilson.fu2",20],[3,"wilson.fu3",30]];varsqldata=newArray();for(vari=0;i10;i++){sqldata.push([i.toString(),

Exitjs获取DataView中图片文件名
1、前台scripttype="text/javascript"language="javascript"functionaa(){varselNode=this.DataView1.getSelectedNodes()[0];alert(selNode.id);}/script2、后台protectedvoidPage_Load(objectsender,EventArg

本周排行

更新排行

强悍的草根IT技术社区,这里应该有您想要的!
Copyright © 2010 Gimoo.Net. All Rights Rreserved  京ICP备05050695号