examples/bootstrap/bootstrap.js
authorJulian Knowles <julian@roojs.com>
Tue, 21 Jan 2014 06:09:46 +0000 (14:09 +0800)
committerJulian Knowles <julian@roojs.com>
Tue, 21 Jan 2014 06:09:46 +0000 (14:09 +0800)
examples/bootstrap/bootstrap.js

index 8a11e68..e2ae663 100644 (file)
@@ -32,66 +32,62 @@ Roo.example.bootstrap = new Roo.XComponent({
                     inverse : true,
                     xns: Roo.bootstrap,
                     items : [
-                        
                         {
-                            xtype: 'Item',
-                            xns: Roo.bootstrap.Navbar,
-                            href: '#',
-                            html: "hello",
-                            badge: 'test',
-                            active: true
-                        },
-                        {
-                            xtype: 'Button',
+                            xtype: 'NavGroup',
                             xns: Roo.bootstrap,
-                            html: "hello",
-                            menu:  {
-                                    xtype: 'Menu',
+                            items: [
+                                {
+                                    xtype: 'Item',
+                                    xns: Roo.bootstrap.Navbar,
+                                    href: '#',
+                                    html: "hello",
+                                    badge: 'test',
+                                    active: true
+                                },
+                                {
+                                    xtype: 'Button',
                                     xns: Roo.bootstrap,
-                                    items : [
-                                        {
-                                            xtype: 'MenuItem',
-                                            xns: Roo.bootstrap,
-                                            html: "hello aaa",
-                                            href : 'http://roojs.com'
-                                        },
-                                        {
-                                            xtype: 'MenuItem',
+                                    html: "hello",
+                                    menu:  {
+                                            xtype: 'Menu',
                                             xns: Roo.bootstrap,
-                                            html: "hello",
-                                            href : 'http://roojs.com'
+                                            items : [
+                                                {
+                                                    xtype: 'MenuItem',
+                                                    xns: Roo.bootstrap,
+                                                    html: "hello aaa",
+                                                    href : 'http://roojs.com'
+                                                },
+                                                {
+                                                    xtype: 'MenuItem',
+                                                    xns: Roo.bootstrap,
+                                                    html: "hello",
+                                                    href : 'http://roojs.com'
+                                                }
+                                            ]
                                         }
-                                    ]
-                                }
-                        },
-                        {
-                            xtype: 'Button',
-                            xns: Roo.bootstrap,
-                           
-                            html: "dialog",
-                            listeners : {
-                                click : function() {
-                                    Roo.ComponentMgr.get('test-modal-1').show()
-
-                                }
-                            }
-                            
-                        },
-                        
-                         {
-                            xtype: 'Modal',
-                            id: 'test-modal-1',
-                            xns: Roo.bootstrap,
-                            title : 'test1',
-                            html: "dialog"
-                            
-                            
-                        },
-                        
-                        
-                        
-                        
-                        
+                                },
+                                {
+                                    xtype: 'Button',
+                                    xns: Roo.bootstrap,
+                                   
+                                    html: "dialog",
+                                    listeners : {
+                                        click : function() {
+                                            Roo.ComponentMgr.get('test-modal-1').show()
+                                        }
+                                    }
+                                    
+                                },
+                                {
+                                    xtype: 'Modal',
+                                    id: 'test-modal-1',
+                                    xns: Roo.bootstrap,
+                                    title : 'test1',
+                                    html: "dialog"
+                                },
+                            ]
+                        }
                     ]
                     
                 },