Line | |
---|
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>Carousel (dojo.data)</title> |
---|
8 | |
---|
9 | <script type="text/javascript" src="../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base','Carousel','PageIndicator']"></script> |
---|
10 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true, mblAlwaysHideAddressBar: true"></script> |
---|
11 | |
---|
12 | <script type="text/javascript"> |
---|
13 | require([ |
---|
14 | "dojo/data/ItemFileReadStore", |
---|
15 | "dojox/mobile/parser", |
---|
16 | "dojox/mobile", |
---|
17 | "dojox/mobile/compat", |
---|
18 | "dojox/mobile/View", |
---|
19 | "dojox/mobile/DataCarousel" |
---|
20 | ], function(ItemFileReadStore){ |
---|
21 | store1 = new ItemFileReadStore({url: "data/carousel-dish.json"}); |
---|
22 | }); |
---|
23 | </script> |
---|
24 | </head> |
---|
25 | <body style="visibility:hidden;background-color:#6D6D6D"> |
---|
26 | <div id="foo" data-dojo-type="dojox.mobile.View"> |
---|
27 | <div id="carousel1" data-dojo-type="dojox.mobile.DataCarousel" |
---|
28 | data-dojo-props='height:"150px", navButton:true, store:store1, numVisible:2, title:"Category"'></div> |
---|
29 | </div> |
---|
30 | </body> |
---|
31 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.