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>ValuePickerSlot</title> |
---|
8 | |
---|
9 | <script type="text/javascript" src="../deviceTheme.js" data-dojo-config="mblThemeFiles: ['base','ValuePicker']"></script> |
---|
10 | <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="async: true, parseOnLoad: true"></script> |
---|
11 | |
---|
12 | <script type="text/javascript"> |
---|
13 | require([ |
---|
14 | "dijit/registry", |
---|
15 | "dojox/mobile/parser", |
---|
16 | "dojox/mobile", |
---|
17 | "dojox/mobile/compat", |
---|
18 | "dojox/mobile/ValuePickerSlot" |
---|
19 | ], function(registry){ |
---|
20 | spin = function(steps){ |
---|
21 | registry.byId("picker1").spin(steps); |
---|
22 | registry.byId("picker2").spin(steps); |
---|
23 | }; |
---|
24 | }); |
---|
25 | </script> |
---|
26 | <style> |
---|
27 | </style> |
---|
28 | </head> |
---|
29 | <body style="visibility:hidden;background-color:#424142;padding:10px;"> |
---|
30 | <div id="foo" data-dojo-type="dojox.mobile.View"> |
---|
31 | <div id="picker1" data-dojo-type="dojox.mobile.ValuePickerSlot" |
---|
32 | data-dojo-props='labelFrom:1, labelTo:3' |
---|
33 | style="width:72px;float:left"></div> |
---|
34 | <div id="picker2" data-dojo-type="dojox.mobile.ValuePickerSlot" |
---|
35 | data-dojo-props="labels:['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']" |
---|
36 | style="width:72px;float:left;margin-left:10px;"></div> |
---|
37 | <p style="clear:both;height:10px"></p> |
---|
38 | <input type="button" onclick="spin(1)" value="+1"> |
---|
39 | <input type="button" onclick="spin(-1)" value="−1"> |
---|
40 | </div> |
---|
41 | </body> |
---|
42 | </html> |
---|