| 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>TabBar</title> |
| 8 | |
| 9 | <link href="../../themes/common/domButtons/DomButtonYellowStar.css" rel="stylesheet"/> |
| 10 | <link href="../../themes/common/domButtons/DomButtonGrayStar.css" rel="stylesheet"/> |
| 11 | |
| 12 | <script type="text/javascript" src="../../deviceTheme.js" data-dojo-config="'dojo-bidi': true, mblThemeFiles: ['base','TabBar']"></script> |
| 13 | <script type="text/javascript" src="../../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true, has:{'dojo-bidi': true}"></script> |
| 14 | |
| 15 | <script type="text/javascript"> |
| 16 | require([ |
| 17 | "dojo/parser", |
| 18 | "dojox/mobile", |
| 19 | "dojox/mobile/compat", |
| 20 | "dojox/mobile/TabBar" |
| 21 | ]); |
| 22 | </script> |
| 23 | |
| 24 | <style> |
| 25 | h3 { |
| 26 | font-style: italic; |
| 27 | margin: 20px 0px 3px 8px; |
| 28 | } |
| 29 | </style> |
| 30 | </head> |
| 31 | <body style="visibility:hidden;"> |
| 32 | <h3>tabBar</h3> |
| 33 | <div dir="ltr"> |
| 34 | <div dir="rtl"> |
| 35 | <div> |
| 36 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='iconBase:"../images/tab-icons.png"'> |
| 37 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 38 | icon1:"../images/tab-icon-16.png", |
| 39 | icon2:"../images/tab-icon-16h.png", |
| 40 | selected:true'>Image</li> |
| 41 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 42 | iconPos1:"0,29,29,29", |
| 43 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 44 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 45 | icon1:"mblDomButtonGrayStar", |
| 46 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 47 | </ul> |
| 48 | </div> |
| 49 | </div> |
| 50 | </div> |
| 51 | |
| 52 | |
| 53 | |
| 54 | <h3>segmentedControl</h3> |
| 55 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"segmentedControl"' dir="rtl"> |
| 56 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true, icon1:"../images/tab-icon-21.png", icon2:"../images/tab-icon-21h.png"'>New</li> |
| 57 | <li data-dojo-type="dojox.mobile.TabBarButton">Dramatic</li> |
| 58 | <li data-dojo-type="dojox.mobile.TabBarButton">Insight</li> |
| 59 | </ul> |
| 60 | |
| 61 | <div class="label">(in a Heading)</div> |
| 62 | <div data-dojo-type="dojox.mobile.Heading" dir="rtl"> |
| 63 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"segmentedControl"'> |
| 64 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Catalog</li> |
| 65 | <li data-dojo-type="dojox.mobile.TabBarButton">Share</li> |
| 66 | <li data-dojo-type="dojox.mobile.TabBarButton">Download</li> |
| 67 | </ul> |
| 68 | <span data-dojo-type="dojox.mobile.ToolBarButton" data-dojo-props=''>MMMM</span> |
| 69 | </div><br> |
| 70 | |
| 71 | |
| 72 | |
| 73 | <h3>standardTab</h3> |
| 74 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"standardTab"' dir="rtl"> |
| 75 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 76 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 77 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 78 | </ul><br> |
| 79 | |
| 80 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"standardTab", closable:true, center:false' dir="rtl"> |
| 81 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 82 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 83 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 84 | </ul><br> |
| 85 | |
| 86 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 87 | barType:"standardTab", center:false, iconBase:"../images/tab-icons.png"' dir="rtl"> |
| 88 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 89 | icon1:"../images/tab-icon-21.png", |
| 90 | icon2:"../images/tab-icon-21h.png", |
| 91 | selected:true'>Image</li> |
| 92 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 93 | iconPos1:"0,29,29,29", |
| 94 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 95 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 96 | icon1:"mblDomButtonGrayStar", |
| 97 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 98 | </ul> |
| 99 | |
| 100 | |
| 101 | |
| 102 | <h3>slimTab</h3> |
| 103 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"slimTab"' dir="rtl"> |
| 104 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 105 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 106 | <li data-dojo-type="dojox.mobile.TabBarButton">Event</li> |
| 107 | </ul><br> |
| 108 | |
| 109 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"slimTab", closable:true, center:false' dir="rtl"> |
| 110 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 111 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 112 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 113 | </ul><br> |
| 114 | |
| 115 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 116 | barType:"slimTab", center:false, iconBase:"../images/tab-icons.png"' dir="rtl"> |
| 117 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 118 | icon1:"../images/tab-icon-21.png", |
| 119 | icon2:"../images/tab-icon-21h.png", |
| 120 | selected:true'>Image</li> |
| 121 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 122 | iconPos1:"0,29,29,29", |
| 123 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 124 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 125 | icon1:"mblDomButtonGrayStar", |
| 126 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 127 | </ul> |
| 128 | |
| 129 | |
| 130 | |
| 131 | <h3>flatTab</h3> |
| 132 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"flatTab"' dir="rtl"> |
| 133 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 134 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 135 | <li data-dojo-type="dojox.mobile.TabBarButton">Event</li> |
| 136 | </ul><br> |
| 137 | |
| 138 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"flatTab", closable:true, center:false' dir="rtl"> |
| 139 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 140 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 141 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 142 | </ul><br> |
| 143 | |
| 144 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 145 | barType:"flatTab", center:false, iconBase:"../images/tab-icons.png"' dir="rtl"> |
| 146 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 147 | icon1:"../images/tab-icon-21.png", |
| 148 | icon2:"../images/tab-icon-21h.png", |
| 149 | selected:true'>Image</li> |
| 150 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 151 | iconPos1:"0,29,29,29", |
| 152 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 153 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 154 | icon1:"mblDomButtonGrayStar", |
| 155 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 156 | </ul> |
| 157 | |
| 158 | |
| 159 | |
| 160 | <h3>tallTab</h3> |
| 161 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 162 | barType:"tallTab", iconBase:"../images/tab-icons.png"' dir="rtl"> |
| 163 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 164 | icon1:"../images/tab-icon-21.png", |
| 165 | icon2:"../images/tab-icon-21h.png", |
| 166 | selected:true'>Image</li> |
| 167 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 168 | iconPos1:"0,29,29,29", |
| 169 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 170 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 171 | icon1:"mblDomButtonGrayStar", |
| 172 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 173 | </ul><br> |
| 174 | </body> |
| 175 | </html> |