| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> |
| 5 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> |
| 6 | <meta name="apple-mobile-web-app-capable" content="yes"/> |
| 7 | <title>GridLayout</title> |
| 8 | |
| 9 | <script type="text/javascript" src="../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base','Button','GridLayout']"></script> |
| 10 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script> |
| 11 | |
| 12 | <script type="text/javascript"> |
| 13 | require([ |
| 14 | "dojox/mobile/parser", |
| 15 | "dojox/mobile", |
| 16 | "dojox/mobile/compat", |
| 17 | "dojox/mobile/ScrollableView", |
| 18 | "dojox/mobile/GridLayout", |
| 19 | "dojox/mobile/Pane", |
| 20 | "dojox/mobile/Button" |
| 21 | ]); |
| 22 | </script> |
| 23 | <style> |
| 24 | .mblButton { |
| 25 | width: 100%; |
| 26 | height: 100%; |
| 27 | } |
| 28 | </style> |
| 29 | </head> |
| 30 | <body style="visibility:hidden;"> |
| 31 | <div id="view1" data-dojo-type="dojox.mobile.ScrollableView"> |
| 32 | <div data-dojo-type="dojox.mobile.GridLayout" data-dojo-props='cols:2' style="height: 200px;"> |
| 33 | <div data-dojo-type="dojox.mobile.Pane"><button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 1</button></div> |
| 34 | <div data-dojo-type="dojox.mobile.Pane"><button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 2</button></div> |
| 35 | <div data-dojo-type="dojox.mobile.Pane"><button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 3</button></div> |
| 36 | <div data-dojo-type="dojox.mobile.Pane"><button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 4</button></div> |
| 37 | <div data-dojo-type="dojox.mobile.Pane"><button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 5</button></div> |
| 38 | <div data-dojo-type="dojox.mobile.Pane"><button class="mblBlueButton" data-dojo-type="dojox.mobile.Button">Button 6</button></div> |
| 39 | </div> |
| 40 | </div> |
| 41 | </body> |
| 42 | </html> |
| 43 |