X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/ee06f37b0f6f6d94cd05a6ffae556660f7c4a2bc..c930e9176a5a85509c5b0230e2bff5c22a591432:/docs/source/hello.html diff --git a/docs/source/hello.html b/docs/source/hello.html new file mode 100644 index 00000000..bb24757d --- /dev/null +++ b/docs/source/hello.html @@ -0,0 +1,46 @@ + + + The source code + + + + +
Ext.onReady(function(){
+    var win;
+    var button = Ext.get('show-btn');
+
+    button.on('click', function(){
+        // create the window on the first click and reuse on subsequent clicks
+        if(!win){
+            win = new Ext.Window({
+                applyTo:'hello-win',
+                layout:'fit',
+                width:500,
+                height:300,
+                closeAction:'hide',
+                plain: true,
+
+                items: new Ext.TabPanel({
+                    applyTo: 'hello-tabs',
+                    autoTabs:true,
+                    activeTab:0,
+                    deferredRender:false,
+                    border:false
+                }),
+
+                buttons: [{
+                    text:'Submit',
+                    disabled:true
+                },{
+                    text: 'Close',
+                    handler: function(){
+                        win.hide();
+                    }
+                }]
+            });
+        }
+        win.show(this);
+    });
+});
+ + \ No newline at end of file