examples/bootstrap/sample.js
authorJulian Knowles <julian@roojs.com>
Mon, 27 Jan 2014 11:45:42 +0000 (19:45 +0800)
committerJulian Knowles <julian@roojs.com>
Mon, 27 Jan 2014 11:45:42 +0000 (19:45 +0800)
examples/bootstrap/sample.js

index 6045f3e..2ed813a 100644 (file)
@@ -1119,7 +1119,31 @@ Roo.example.bootstrap = new Roo.XComponent({
                                                                 {
                                                                     xtype: 'Button',
                                                                     xns: Roo.bootstrap,
-                                                                    html: 'Action'
+                                                                    html: 'Action',
+                                                                    menu: {
+                                                                        xtype: 'Menu',
+                                                                        xns: Roo.bootstrap,
+                                                                        items: [
+                                                                            {
+                                                                                xtype: 'MenuItem',
+                                                                                xns: Roo.bootstrap,
+                                                                                html: "hello aaa",
+                                                                                href : 'http://roojs.com'
+                                                                            },
+                                                                            {
+                                                                                xtype: 'MenuItem',
+                                                                                xns: Roo.bootstrap,
+                                                                                html: "hello aaa",
+                                                                                href : 'http://roojs.com'
+                                                                            },
+                                                                            {
+                                                                                xtype: 'MenuItem',
+                                                                                xns: Roo.bootstrap,
+                                                                                html: "hello aaa",
+                                                                                href : 'http://roojs.com'
+                                                                            }
+                                                                        ]
+                                                                    }
                                                                 }
                                                             ]
                                                         }