| 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>Toggle Button</title> |
| 7 | <link href="../../themes/android/base.css" rel="stylesheet"> |
| 8 | <link href="../../themes/android/base-compat.css" rel="stylesheet"> |
| 9 | <link href="../../themes/android/ToggleButton.css" rel="stylesheet"> |
| 10 | <link href="../../themes/android/ToggleButton_rtl.css" rel="stylesheet"> |
| 11 | |
| 12 | <style type="text/css"> |
| 13 | @import "../../themes/android/android.css"; |
| 14 | </style> |
| 15 | |
| 16 | <script type="text/javascript" src="../../../../dojo/dojo.js" djConfig="parseOnLoad: true, has: {'dojo-bidi': true}"></script> |
| 17 | |
| 18 | <script language="JavaScript" type="text/javascript"> |
| 19 | dojo.require("dojox.mobile"); // This is a mobile app. |
| 20 | dojo.require("dojo.parser"); //dojo.require("dojox.mobile.parser"); // This mobile app supports running on desktop browsers |
| 21 | dojo.require("dojox.mobile.compat"); // This mobile app uses declarative programming with fast mobile parser |
| 22 | dojo.require("dojox.mobile.Button"); |
| 23 | dojo.require("dojox.mobile.ToggleButton"); |
| 24 | </script> |
| 25 | </head> |
| 26 | <body style="visibility:hidden;" dir="rtl"> |
| 27 | <div id="settings" dojoType="dojox.mobile.View" selected="true"> |
| 28 | <div> |
| 29 | <div> |
| 30 | <button data-dojo-type="dojox.mobile.ToggleButton" dir="rtl">Toggle me RTL</button> |
| 31 | </br></br> |
| 32 | <button data-dojo-type="dojox.mobile.ToggleButton" dir="ltr">Toggle me Left</button> |
| 33 | </div> |
| 34 | </div> |
| 35 | </div> |
| 36 | </body> |
| 37 | </html> |