| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> |
| 5 | <meta name="viewport" |
| 6 | content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/> |
| 7 | <meta name="apple-mobile-web-app-capable" content="yes"/> |
| 8 | <title>domButtons</title> |
| 9 | |
| 10 | <script type="text/javascript" src="../../deviceTheme.js" |
| 11 | data-dojo-config="'dojo-bidi':true, mblThemeFiles: ['base','dojox/mobile/themes/common/domButtons.css']"></script> |
| 12 | |
| 13 | <script type="text/javascript" src="../../../../dojo/dojo.js" |
| 14 | data-dojo-config="async: true, parseOnLoad: true, has:{'dojo-bidi': true}"></script> |
| 15 | |
| 16 | <script type="text/javascript"> |
| 17 | require([ |
| 18 | "dojo/ready", |
| 19 | "dojox/mobile/Icon", |
| 20 | "dojo/parser", |
| 21 | "dojox/mobile/compat" |
| 22 | ], function(ready, Icon){ |
| 23 | ready(function(){ |
| 24 | // online (=connected to the document) instantiation |
| 25 | var icon1 = new Icon({icon:"../images/tab-icon-23h.png"}, document.getElementById("icon1")); |
| 26 | var icon2 = new Icon({icon:"../images/tab-icons.png", iconPos:"29,116,29,29"}, document.getElementById("icon2")); |
| 27 | var icon3 = new Icon({icon:"mblDomButtonBlueCircleArrow"}, document.getElementById("icon3")); |
| 28 | |
| 29 | // offline (=disconnected to the document) instantiation |
| 30 | var icon4 = new Icon({icon:"../images/tab-icon-23h.png"}); |
| 31 | document.body.appendChild(icon4.domNode); |
| 32 | var icon5 = new Icon({icon:"../images/tab-icons.png", iconPos:"29,116,29,29"}); |
| 33 | document.body.appendChild(icon5.domNode); |
| 34 | var icon6 = new Icon({icon:"mblDomButtonBlueCircleArrow"}); |
| 35 | document.body.appendChild(icon6.domNode); |
| 36 | }); |
| 37 | }); |
| 38 | </script> |
| 39 | </head> |
| 40 | <body> |
| 41 | markup: |
| 42 | <div dir="rtl" data-dojo-type="dojox.mobile.Icon" data-dojo-props='icon:"../images/tab-icon-23h.png"'></div> |
| 43 | <div dir="rtl" data-dojo-type="dojox.mobile.Icon" |
| 44 | data-dojo-props='icon:"../images/tab-icons.png",iconPos:"29,116,29,29"'></div> |
| 45 | <div dir="rtl" data-dojo-type="dojox.mobile.Icon" data-dojo-props='icon:"mblDomButtonBlueCircleArrow"'></div> |
| 46 | <hr> |
| 47 | online: |
| 48 | <div id="icon1"></div> |
| 49 | <div id="icon2"></div> |
| 50 | <div id="icon3"></div> |
| 51 | <hr> |
| 52 | offline: |
| 53 | </body> |
| 54 | </html> |