-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
157 lines (152 loc) · 4.95 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE html>
<html>
<head>
<title></title>
<link href="css/kendo.common.min.css" rel="stylesheet" />
<link href="css/kendo.default.min.css" rel="stylesheet" />
<link href="css/kendo.mobile.all.min.css" rel="stylesheet" />
<script src="js/jquery.min.js"></script>
<script src="js/kendo.all.min.js"></script>
</head>
<body>
<div id="forms" data-role="view" data-title="Form Elements" data-init="initForm" data-use-native-scrolling="true">
<form action="./index.html">
<ul data-role="listview" data-style="inset">
<li>
<label>Select element
<select>
<option value="First Option">First Option</option>
<option value="Second Option">Second Option</option>
<option value="Third Option">Third Option</option>
<option value="Fourth Option">Fourth Option</option>
</select>
</label>
</li>
<li>
<label>DropDownList
<select id="dropdown">
<option value="First Option">First Option</option>
<option value="Second Option">Second Option</option>
<option value="Third Option">Third Option</option>
<option value="Fourth Option">Fourth Option</option>
<option value="First Option">Fifth Option</option>
<option value="Sixth Option">Sixth Option</option>
</select>
</label>
</li>
<li>
<label>Slider
<input id="slider" type="range" max="100" />
</label>
</li>
<li>
<label>Type text
<input type="text" value="Text" />
</label>
</li>
<li>
<label>
Type password
<input type="password" value="password" />
</label>
</li>
<li>
<label>
Type search
<input type="search" value="search" />
</label>
</li>
<li>
<label>
Type url
<input type="url" value="http://www.kendoui.com" />
</label>
</li>
<li>
<label>
Type email
<input type="email" value="[email protected]" />
</label>
</li>
<li>
<label>
Type number
<input type="number" value="20" />
</label>
</li>
<li>
<label>
Type tel
<input type="tel" value="+44 22 11 10" />
</label>
</li>
<li>
<label>
Type date
<input type="date" value="2012-03-22" />
</label>
</li>
<li>
<label>
Type time
<input type="time" value="22:30" />
</label>
</li>
<li>
<label>
Type month
<input type="month" value="2012-01" />
</label>
</li>
<li>
<label>
Type datetime
<input type="datetime" value="2012-03-22T20:15Z" />
</label>
</li>
<li>
<label>
Type datetime-local
<input type="datetime-local" value="2012-03-22T20:15" />
</label>
</li>
<li>
<label>
Textarea
<textarea style="resize: none">Multiline
Text</textarea>
</label>
</li>
</ul>
</form>
</div>
<script>
function initForm() {
var body = $(".km-pane");
if (kendo.ui.DropDownList) {
$("#dropdown").kendoDropDownList({
// The options are needed only for the desktop demo, remove them for mobile.
popup: { appendTo: body },
animation: { open: { effects: body.hasClass("km-android") ? "fadeIn" : body.hasClass("km-ios") || body.hasClass("km-wp") ? "slideIn:up" : "slideIn:down" } }
});
}
if (kendo.ui.Slider) {
$("#slider").kendoSlider({ tooltip: { enabled: false } });
}
}
</script>
<style scoped>
#forms input:not([type=checkbox]):not([type=radio]),
#forms select,
#forms .k-dropdown
{
-webkit-box-sizing: border-box;
box-sizing: border-box;
width: 50%;
}
</style>
<script>
var app = new kendo.mobile.Application(document.body);
</script>
</body>
</html>