forked from dojo/dojo1-dgrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile_grid.html
69 lines (65 loc) · 2.8 KB
/
mobile_grid.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
<!DOCTYPE html>
<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>Mobile dgrid test</title>
<link rel="stylesheet" href="../../dojo/resources/dojo.css">
<link rel="stylesheet" href="../../dojox/mobile/themes/iphone/base.css">
<link rel="stylesheet" href="../css/skins/claro.css">
<link rel="stylesheet" href="../css/dgrid.css">
<script>
var dojoConfig = { deps: [ "dojox/mobile", "dojox/mobile/parser", "dojox/mobile/compat" ], parseOnLoad: true, async: true };
</script>
<script src="../../dojo/dojo.js"></script>
<script>
require(["dojo/on", "dgrid/OnDemandGrid", "dgrid/extensions/ColumnResizer", "dojo/_base/declare", "dgrid/test/data/base", "dojo/domReady!"],
function(on, Grid, ColumnResizer, declare, testStore){
window.grid = new (declare([Grid, ColumnResizer]))({
store: testStore,
columns: { // you can declare columns as an object hash (key translates to field)
col1: "Status",
col4: "Expired",
col5: {label: "Weight"}
}
}, "grid");
});
</script>
</head>
<body class="claro" style="visibility:hidden;">
<div id="view1" data-dojo-type="dojox.mobile.View" selected="true">
<div id="view11" data-dojo-type="dojox.mobile.View" selected="true">
<h1 data-dojo-type="dojox.mobile.Heading">View dgrid</h1>
<h2 data-dojo-type="dojox.mobile.RoundRectCategory">dgrid Mobile Test</h2>
<ul data-dojo-type="dojox.mobile.RoundRectList">
<li data-dojo-type="dojox.mobile.ListItem" icon="../../dojox/mobile/tests/images/i-icon-1.png" moveTo="view12" transition="slide">
View dgrid
</li>
<li data-dojo-type="dojox.mobile.ListItem" icon="../../dojox/mobile/tests/images/i-icon-3.png" moveTo="view2" transition="slide">
View 2
</li>
</ul>
</div>
<div id="view12" data-dojo-type="dojox.mobile.View">
<h1 data-dojo-type="dojox.mobile.Heading">View 1-2</h1>
<ul data-dojo-type="dojox.mobile.RoundRectList">
<li data-dojo-type="dojox.mobile.ListItem" icon="../../dojox/mobile/tests/images/i-icon-2.png" moveTo="view11" transition="slide" transitionDir="-1">
Home
</li>
<li data-dojo-type="dojox.mobile.ListItem" icon="../../dojox/mobile/tests/images/i-icon-3.png" moveTo="view2" transition="slide">
View 2
</li>
</ul>
<div id="grid"></div>
</div>
</div>
<div id="view2" data-dojo-type="dojox.mobile.View">
<h1 data-dojo-type="dojox.mobile.Heading">View 2</h1>
<ul data-dojo-type="dojox.mobile.RoundRectList">
<li data-dojo-type="dojox.mobile.ListItem" icon="../../dojox/mobile/tests/images/i-icon-1.png" moveTo="view1" transition="slide" transitionDir="-1">
Back
</li>
</ul>
</div>
</body>
</html>