source: trunk/web/addons/job_monarch/lib/extjs/examples/window/layout.js @ 619

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

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 1.6 KB
Line 
1/*
2 * Ext JS Library 2.2.1
3 * Copyright(c) 2006-2009, Ext JS, LLC.
4 * licensing@extjs.com
5 *
6 * http://extjs.com/license
7 */
8
9Ext.onReady(function(){
10   
11    Ext.state.Manager.setProvider(
12            new Ext.state.SessionProvider({state: Ext.appState}));
13
14    var button = Ext.get('show-btn');
15
16    button.on('click', function(){
17
18        // tabs for the center
19        var tabs = new Ext.TabPanel({
20            region    : 'center',
21            margins   : '3 3 3 0', 
22            activeTab : 0,
23            defaults  : {
24                                autoScroll : true
25                        },
26            items     : [{
27                title    : 'Bogus Tab',
28                html     : Ext.example.bogusMarkup
29             },{
30                title    : 'Another Tab',
31                html     : Ext.example.bogusMarkup
32             },{ 
33                title    : 'Closable Tab',
34                html     : Ext.example.bogusMarkup,
35                closable : true
36            }]
37        });
38
39        // Panel for the west
40        var nav = new Ext.Panel({
41            title       : 'Navigation',
42            region      : 'west',
43            split       : true,
44            width       : 200,
45            collapsible : true,
46            margins     : '3 0 3 3',
47            cmargins    : '3 3 3 3'
48        }); 
49
50        var win = new Ext.Window({
51            title    : 'Layout Window',
52            closable : true,
53            width    : 600,
54            height   : 350,
55            //border : false,
56            plain    : true,
57            layout   : 'border',
58            items    : [nav, tabs]
59        });
60
61        win.show(button);
62    });
63});
Note: See TracBrowser for help on using the repository browser.