examples/bootstrap/sample.js
authorJulian Knowles <julian@roojs.com>
Mon, 27 Jan 2014 07:52:12 +0000 (15:52 +0800)
committerJulian Knowles <julian@roojs.com>
Mon, 27 Jan 2014 07:52:12 +0000 (15:52 +0800)
examples/bootstrap/sample.js

index 1093034..36c69cc 100644 (file)
@@ -650,6 +650,33 @@ Roo.example.bootstrap = new Roo.XComponent({
                                                     offtext: 'OFF',
                                                     defaulton: false,
                                                     weight: 'danger'
+                                                },
+                                                {
+                                                    xtype: 'Button',
+                                                    xns: Roo.bootstrap,
+                                                    type: 'switch',
+                                                    ontext: 'ON',
+                                                    offtext: 'OFF',
+                                                    defaulton: false,
+                                                    weight: 'black'
+                                                },
+                                                {
+                                                    xtype: 'Button',
+                                                    xns: Roo.bootstrap,
+                                                    type: 'switch',
+                                                    ontext: 'ON',
+                                                    offtext: 'OFF',
+                                                    defaulton: false,
+                                                    weight: 'gray'
+                                                },
+                                                {
+                                                    xtype: 'Button',
+                                                    xns: Roo.bootstrap,
+                                                    type: 'switch',
+                                                    ontext: 'ON',
+                                                    offtext: 'OFF',
+                                                    defaulton: false,
+                                                    weight: 'white'
                                                 }
                                             ]
                                         }