| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> |
| 5 | <meta name="apple-mobile-web-app-capable" content="yes" /> |
| 6 | <title>Round Rect List</title> |
| 7 | <link href="../../../themes/iphone/iphone.css" rel="stylesheet"/> |
| 8 | |
| 9 | <script type="text/javascript" src="../../../../../dojo/dojo.js" data-dojo-config="parseOnLoad: true"></script> |
| 10 | |
| 11 | <script language="JavaScript" type="text/javascript"> |
| 12 | // dojo.require("dojo.parser"); // Use the lightweight parser. |
| 13 | dojo.require("dojox.mobile.parser"); |
| 14 | dojo.require("dojox.mobile"); |
| 15 | dojo.requireIf(!dojo.isWebKit, "dojox.mobile.compat"); |
| 16 | </script> |
| 17 | <script language="JavaScript" type="text/javascript"> |
| 18 | dojo.addOnLoad(function(){ |
| 19 | var view = dijit.byId("foo"); |
| 20 | var demoWidget = new dojox.mobile.RoundRectList(); |
| 21 | // view.addChild(demoWidget); |
| 22 | demoWidget.placeAt(view.containerNode); |
| 23 | demoWidget.startup(); |
| 24 | |
| 25 | var childWidget = new dojox.mobile.ListItem({id:"item1", icon:"../../images/i-icon-1.png", rightText:"Off", moveTo:"bar", label:"u1space"}); |
| 26 | demoWidget.addChild(childWidget); |
| 27 | childWidget = new dojox.mobile.ListItem({id:"item2", icon:"../../images/i-icon-2.png", rightText:"On", moveTo:"bar",label:"u2space"}); |
| 28 | demoWidget.addChild(childWidget); |
| 29 | // childWidget = new dojox.mobile.ListItem({id:"item3"}); |
| 30 | childWidget = new dojox.mobile.ListItem({id:"item3", rightText:"Off", moveTo:"bar", label:"Wi-Fi"}); |
| 31 | demoWidget.addChild(childWidget); |
| 32 | // childWidget.set({rightText:"Off", moveTo:"bar", label :"Wi-Fi"}); |
| 33 | |
| 34 | view = dijit.byId("bar"); |
| 35 | demoWidget = new dojox.mobile.RoundRectList(); |
| 36 | // view.addChild(demoWidget); |
| 37 | demoWidget.placeAt(view.containerNode); |
| 38 | demoWidget.startup(); |
| 39 | |
| 40 | childWidget = new dojox.mobile.ListItem({rightText:"Off", label:"Video", moveTo:"foo"}); |
| 41 | demoWidget.addChild(childWidget); |
| 42 | childWidget = new dojox.mobile.ListItem({icon:"../../images/i-icon-1.png", rightText:"VPN", label:"Maps"}); |
| 43 | demoWidget.addChild(childWidget); |
| 44 | childWidget = new dojox.mobile.ListItem({rightText:"Off", label:"Phone Number"}); |
| 45 | demoWidget.addChild(childWidget); |
| 46 | }); |
| 47 | </script> |
| 48 | </script> |
| 49 | |
| 50 | <script type="text/javascript" src="../TestUtil.js"></script> |
| 51 | <script type="text/javascript" src="RoundRectList.js"></script> |
| 52 | </head> |
| 53 | <body> |
| 54 | <div id="foo" dojoType="dojox.mobile.View" selected="true"> |
| 55 | <h1 dojoType="dojox.mobile.Heading">Mobile Mashup</h1> |
| 56 | <h2 id="Category" dojoType="dojox.mobile.RoundRectCategory">Spaces</h2> |
| 57 | <ul id="RoundRectList1" dojoType="dojox.mobile.RoundRectList"> |
| 58 | </ul> |
| 59 | </div> |
| 60 | |
| 61 | <div id="bar" dojoType="dojox.mobile.View"> |
| 62 | <h1 dojoType="dojox.mobile.Heading" back="Spaces" moveTo="foo">u1space</h1> |
| 63 | <h2 dojoType="dojox.mobile.RoundRectCategory">Applications</h2> |
| 64 | </div> |
| 65 | </body> |
| 66 | </html> |