Updated
This commit is contained in:
39
master/examples/test_SpinWheelTimePicker.html
Normal file
39
master/examples/test_SpinWheelTimePicker.html
Normal file
@@ -0,0 +1,39 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no"/>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<title>SpinWheel Time Picker</title>
|
||||
<link href="../themes/common/SpinWheel.css" rel="stylesheet">
|
||||
<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="parseOnLoad: true"></script>
|
||||
<style>
|
||||
#spin1 {
|
||||
margin: 10px auto;
|
||||
}
|
||||
</style>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
//dojo.require("dojo.parser"); // Use the lightweight parser.
|
||||
dojo.require("dojox.mobile"); // This is a mobile app.
|
||||
dojo.require("dojox.mobile.parser"); // This mobile app supports running on desktop browsers
|
||||
dojo.require("dojox.mobile.compat"); // This mobile app uses declarative programming with fast mobile parser
|
||||
dojo.require("dojox.mobile.deviceTheme");
|
||||
dojo.require("dojox.mobile.SpinWheelTimePicker");
|
||||
function gotoToday(){
|
||||
dijit.byId("spin1").reset();
|
||||
}
|
||||
function showSelectedValue() {
|
||||
var w = dijit.byId("spin1");
|
||||
console.log(w.slots[0].getValue()+ ":" + w.slots[1].getValue());
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body style="visibility:hidden;">
|
||||
<div dojotype="dojox.mobile.View" selected="true">
|
||||
<h1 dojoType="dojox.mobile.Heading">
|
||||
<div dojoType="dojox.mobile.ToolBarButton" onClick="showSelectedValue()" label="OK"></div>
|
||||
<div dojoType="dojox.mobile.ToolBarButton" onClick="gotoToday()" label="Now"></div>
|
||||
</h1>
|
||||
<div id="spin1" dojoType="dojox.mobile.SpinWheelTimePicker"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user