| 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="mblThemeFiles: ['base','TabBar']"></script> |
| 13 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script> |
| 14 | |
| 15 | <script type="text/javascript"> |
| 16 | require([ |
| 17 | "dojox/mobile/parser", |
| 18 | "dojox/mobile", |
| 19 | "dojox/mobile/compat", |
| 20 | "dojox/mobile/ScrollableView", |
| 21 | "dojox/mobile/TabBar" |
| 22 | ]); |
| 23 | </script> |
| 24 | |
| 25 | <style> |
| 26 | h3 { |
| 27 | font-style: italic; |
| 28 | margin: 20px 0px 3px 8px; |
| 29 | } |
| 30 | |
| 31 | .label { |
| 32 | padding-top: 10px; |
| 33 | } |
| 34 | </style> |
| 35 | </head> |
| 36 | <body style="visibility:hidden;"> |
| 37 | |
| 38 | <div data-dojo-type="dojox.mobile.ScrollableView"> |
| 39 | <h3>tabBar</h3> |
| 40 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='iconBase:"images/tab-icons.png"'> |
| 41 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 42 | icon1:"images/tab-icon-16.png", |
| 43 | icon2:"images/tab-icon-16h.png", |
| 44 | selected:true'>Image</li> |
| 45 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 46 | iconPos1:"0,29,29,29", |
| 47 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 48 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 49 | icon1:"mblDomButtonGrayStar", |
| 50 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 51 | </ul> |
| 52 | |
| 53 | <div class="label">With fill='always':</div> |
| 54 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='iconBase:"images/tab-icons.png", fill: "always"'> |
| 55 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 56 | icon1:"images/tab-icon-16.png", |
| 57 | icon2:"images/tab-icon-16h.png", |
| 58 | selected:true'>Image</li> |
| 59 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 60 | iconPos1:"0,29,29,29", |
| 61 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 62 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 63 | icon1:"mblDomButtonGrayStar", |
| 64 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 65 | </ul> |
| 66 | |
| 67 | |
| 68 | |
| 69 | <h3>segmentedControl</h3> |
| 70 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"segmentedControl"'> |
| 71 | <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> |
| 72 | <li data-dojo-type="dojox.mobile.TabBarButton">Dramatic</li> |
| 73 | <li data-dojo-type="dojox.mobile.TabBarButton">Insight</li> |
| 74 | </ul> |
| 75 | |
| 76 | <div class="label">With fill='always':</div> |
| 77 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"segmentedControl", fill: "always"'> |
| 78 | <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> |
| 79 | <li data-dojo-type="dojox.mobile.TabBarButton">Dramatic</li> |
| 80 | <li data-dojo-type="dojox.mobile.TabBarButton">Insight</li> |
| 81 | </ul> |
| 82 | |
| 83 | <div class="label">(in a Heading)</div> |
| 84 | <div data-dojo-type="dojox.mobile.Heading"> |
| 85 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"segmentedControl"'> |
| 86 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Catalog</li> |
| 87 | <li data-dojo-type="dojox.mobile.TabBarButton">Share</li> |
| 88 | <li data-dojo-type="dojox.mobile.TabBarButton">Download</li> |
| 89 | </ul> |
| 90 | <span data-dojo-type="dojox.mobile.ToolBarButton" data-dojo-props=''>MMMM</span> |
| 91 | </div><br> |
| 92 | |
| 93 | <h3>standardTab</h3> |
| 94 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"standardTab"'> |
| 95 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 96 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 97 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 98 | </ul><br> |
| 99 | |
| 100 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"standardTab", closable:true, center:false'> |
| 101 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 102 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 103 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 104 | </ul><br> |
| 105 | |
| 106 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 107 | barType:"standardTab", center:false, iconBase:"images/tab-icons.png"'> |
| 108 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 109 | icon1:"images/tab-icon-21.png", |
| 110 | icon2:"images/tab-icon-21h.png", |
| 111 | selected:true'>Image</li> |
| 112 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 113 | iconPos1:"0,29,29,29", |
| 114 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 115 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 116 | icon1:"mblDomButtonGrayStar", |
| 117 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 118 | </ul> |
| 119 | |
| 120 | <div class="label">With fill='always':</div> |
| 121 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"standardTab", fill: "always"'> |
| 122 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 123 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 124 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 125 | </ul><br> |
| 126 | |
| 127 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"standardTab", closable:true, center:false, fill: "always"'> |
| 128 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 129 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 130 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 131 | </ul><br> |
| 132 | |
| 133 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 134 | barType:"standardTab", center:false, iconBase:"images/tab-icons.png", fill: "always"'> |
| 135 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 136 | icon1:"images/tab-icon-21.png", |
| 137 | icon2:"images/tab-icon-21h.png", |
| 138 | selected:true'>Image</li> |
| 139 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 140 | iconPos1:"0,29,29,29", |
| 141 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 142 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 143 | icon1:"mblDomButtonGrayStar", |
| 144 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 145 | </ul> |
| 146 | |
| 147 | |
| 148 | <h3>slimTab</h3> |
| 149 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"slimTab"'> |
| 150 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 151 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 152 | <li data-dojo-type="dojox.mobile.TabBarButton">Event</li> |
| 153 | </ul><br> |
| 154 | |
| 155 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"slimTab", closable:true, center:false'> |
| 156 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 157 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 158 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 159 | </ul><br> |
| 160 | |
| 161 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 162 | barType:"slimTab", center:false, iconBase:"images/tab-icons.png"'> |
| 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> |
| 174 | |
| 175 | <div class="label">With fill='always':</div> |
| 176 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"slimTab", fill: "always"'> |
| 177 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 178 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 179 | <li data-dojo-type="dojox.mobile.TabBarButton">Event</li> |
| 180 | </ul><br> |
| 181 | |
| 182 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"slimTab", closable:true, center:false, fill: "always"'> |
| 183 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 184 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 185 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 186 | </ul><br> |
| 187 | |
| 188 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 189 | barType:"slimTab", center:false, iconBase:"images/tab-icons.png", fill: "always"'> |
| 190 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 191 | icon1:"images/tab-icon-21.png", |
| 192 | icon2:"images/tab-icon-21h.png", |
| 193 | selected:true'>Image</li> |
| 194 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 195 | iconPos1:"0,29,29,29", |
| 196 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 197 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 198 | icon1:"mblDomButtonGrayStar", |
| 199 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 200 | </ul> |
| 201 | |
| 202 | |
| 203 | <h3>flatTab</h3> |
| 204 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"flatTab"'> |
| 205 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 206 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 207 | <li data-dojo-type="dojox.mobile.TabBarButton">Event</li> |
| 208 | </ul><br> |
| 209 | |
| 210 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"flatTab", closable:true, center:false'> |
| 211 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 212 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 213 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 214 | </ul><br> |
| 215 | |
| 216 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 217 | barType:"flatTab", center:false, iconBase:"images/tab-icons.png"'> |
| 218 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 219 | icon1:"images/tab-icon-21.png", |
| 220 | icon2:"images/tab-icon-21h.png", |
| 221 | selected:true'>Image</li> |
| 222 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 223 | iconPos1:"0,29,29,29", |
| 224 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 225 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 226 | icon1:"mblDomButtonGrayStar", |
| 227 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 228 | </ul> |
| 229 | |
| 230 | <div class="label">With fill='always':</div> |
| 231 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"flatTab", fill: "always"'> |
| 232 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 233 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 234 | <li data-dojo-type="dojox.mobile.TabBarButton">Event</li> |
| 235 | </ul><br> |
| 236 | |
| 237 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"flatTab", closable:true, center:false, fill: "always"'> |
| 238 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props='selected:true'>Dashboard</li> |
| 239 | <li data-dojo-type="dojox.mobile.TabBarButton">Plan</li> |
| 240 | <li data-dojo-type="dojox.mobile.TabBarButton">Today's Main Event</li> |
| 241 | </ul><br> |
| 242 | |
| 243 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 244 | barType:"flatTab", center:false, iconBase:"images/tab-icons.png", fill: "always"'> |
| 245 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 246 | icon1:"images/tab-icon-21.png", |
| 247 | icon2:"images/tab-icon-21h.png", |
| 248 | selected:true'>Image</li> |
| 249 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 250 | iconPos1:"0,29,29,29", |
| 251 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 252 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 253 | icon1:"mblDomButtonGrayStar", |
| 254 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 255 | </ul> |
| 256 | |
| 257 | |
| 258 | <h3>tallTab</h3> |
| 259 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props=' |
| 260 | barType:"tallTab", iconBase:"images/tab-icons.png"'> |
| 261 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 262 | icon1:"images/tab-icon-21.png", |
| 263 | icon2:"images/tab-icon-21h.png", |
| 264 | selected:true'>Image</li> |
| 265 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 266 | iconPos1:"0,29,29,29", |
| 267 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 268 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 269 | icon1:"mblDomButtonGrayStar", |
| 270 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 271 | </ul><br> |
| 272 | |
| 273 | <div class="label">With fill='always':</div> |
| 274 | <ul data-dojo-type="dojox.mobile.TabBar" data-dojo-props='barType:"tallTab", iconBase:"images/tab-icons.png", fill: "always"'> |
| 275 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 276 | icon1:"images/tab-icon-21.png", |
| 277 | icon2:"images/tab-icon-21h.png", |
| 278 | selected:true'>Image</li> |
| 279 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 280 | iconPos1:"0,29,29,29", |
| 281 | iconPos2:"29,29,29,29"'>Sprite</li> |
| 282 | <li data-dojo-type="dojox.mobile.TabBarButton" data-dojo-props=' |
| 283 | icon1:"mblDomButtonGrayStar", |
| 284 | icon2:"mblDomButtonYellowStar"'>DOM Button</li> |
| 285 | </ul><br> |
| 286 | </div> |
| 287 | </body> |
| 288 | </html> |