- 注册时间
- 2012-5-23
- 最后登录
- 2018-2-27
- 阅读权限
- 200
- 积分
- 7605
- 精华
- 0
- 帖子
- 3021
|
完整页面代码:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- </head>
- <body>
- <input id="btnEdit1" class="mini-buttonedit" />
- </body>
- </html>
- <link href="http://extjs.cachefly.net/ext-3.0.3/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.0.3/adapter/ext/ext-base.js"></script>
- <script type="text/javascript" src="http://extjs.cachefly.net/ext-3.0.3/ext-all.js"></script>
- <script src="../../scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
- <script src="../../scripts/miniui/miniui.js" type="text/javascript"></script><link href="../../scripts/miniui/themes/default/miniui.css" rel="stylesheet" type="text/css" />
- <link href="../../scripts/miniui/themes/icons.css" rel="stylesheet" type="text/css" />
- <script type="text/javascript">
- //创建ext面板
- var viewport = new Ext.Viewport({
- layout: 'border',
- items: [
- new Ext.BoxComponent({
- region: 'north',
- height: 32,
- autoEl: {
- tag: 'div',
- html: '<b style="padding:8px;">Ext甘特图集成示例</b>'
- }
- }),
- new Ext.TabPanel({
- region: 'center', //部署的区域,参考上图,center是中间显示页面区域
- autoScroll: true,
- animScroll: true,
- resizTabs: true,
- enableTabScroll: true,
- activeTab: 0,
- deferredRender: false,
- defaults: {
- autoScroll: true
- },
- tabMargin: 0,
- items: [
- new Ext.BoxComponent({
- id: "extwrap",
- title: "ExtJS",
- region: "center"
- }
- )
- ]
- })
- ]
- });
- mini.parse();
- var extControl = Ext.get("extwrap");
- var btnEdit1 = mini.get("btnEdit1");
- btnEdit1.render(extControl.dom);
- </script>
复制代码 |
|