hello.js
上传用户:dawnssy
上传日期:2022-08-06
资源大小:9345k
文件大小:1k
源码类别:

JavaScript

开发平台:

JavaScript

  1. /*!  * Ext JS Library 3.1.0  * Copyright(c) 2006-2009 Ext JS, LLC  * licensing@extjs.com  * http://www.extjs.com/license  */ Ext.onReady(function(){
  2.     var win;
  3.     var button = Ext.get('show-btn');
  4.     button.on('click', function(){
  5.         // create the window on the first click and reuse on subsequent clicks
  6.         if(!win){
  7.             win = new Ext.Window({
  8.                 applyTo:'hello-win',
  9.                 layout:'fit',
  10.                 width:500,
  11.                 height:300,
  12.                 closeAction:'hide',
  13.                 plain: true,
  14.                 items: new Ext.TabPanel({
  15.                     applyTo: 'hello-tabs',
  16.                     autoTabs:true,
  17.                     activeTab:0,
  18.                     deferredRender:false,
  19.                     border:false
  20.                 }),
  21.                 buttons: [{
  22.                     text:'Submit',
  23.                     disabled:true
  24.                 },{
  25.                     text: 'Close',
  26.                     handler: function(){
  27.                         win.hide();
  28.                     }
  29.                 }]
  30.             });
  31.         }
  32.         win.show(this);
  33.     });
  34. });