source: trunk/web/addons/job_monarch/lib/extjs-30/examples/window/hello.js @ 625

Last change on this file since 625 was 625, checked in by ramonb, 15 years ago

lib/extjs-30:

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