├─build 经过压缩(build)过的文件
├─docs 文档
├─examples DEMO
├─package 按包分类的文件
├─resources 资源文件,包括CSS和一些图片
└─source 源代码
<link rel="stylesheet" type="text/css" href="js/ext/resources/css/xtheme-aero.css" /> 可选,用来控制主题,并且有其他两个可选值,xtheme-gray.css、xtheme-vista.css。
Ext Stand-alone:
ext-base.js
ext-all.js (or your choice of files)
Yahoo! UI (.12+):
yui-utilities.js
ext-yui-adapter.js
ext-all.js (or your choice of files)
jQuery (1.1+):
jquery.js
jquery-plugins.js // required jQuery plugins
ext-jquery-adapter.js
ext-all.js (or your choice of files)
Prototype (1.5+) / Scriptaculous (1.7+):
prototype.js
scriptaculous.js?load=effects (or whatever you want to load)
ext-prototype-adapter.js
ext-all.js (or your choice of files)
var dialog = new Ext.BasicDialog(" hello-dlg", {
id: "hello-dialog",
autoTabs:true,
width:500,
height:300,
shadow:true,
minWidth:300,
minHeight:250,
proxyDrag: true
});
dialog.addKeyListener(27, dialog.hide, dialog);
dialog.addButton('Submit', dialog.hide, dialog).disable();
dialog.addButton('Close', dialog.hide, dialog);
Ext.ComponentMgr.register(dialog);
var dialog = Ext.getCmp("hello-dialog");
dialog.show();
}
Ext.ComponentMgr.register(dialog); 注册组件
Ext.onReady(InitDialog); Ext.onRead是注册一个在整个页面的DOM构建完成会被执行的函数
呵呵,第一个例子就出来了,试试看吧~