forked from DevExpress/DevExtreme-Intl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundled.html
193 lines (168 loc) · 6.15 KB
/
bundled.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>DevExtreme-Intl example using DevExtreme bundle</title>
<link rel="stylesheet" type="text/css" href="../node_modules/devextreme/dist/css/dx.common.css"/>
<link rel="stylesheet" type="text/css" href="../node_modules/devextreme/dist/css/dx.light.css"/>
<script type="text/javascript" src="../node_modules/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="../node_modules/jszip/dist/jszip.js"></script>
<script type="text/javascript" src="../node_modules/devextreme/dist/js/dx.all.debug.js"></script>
<script type="text/javascript" src="../node_modules/devextreme/dist/js/localization/dx.messages.de.js"></script>
<script type="text/javascript" src="../node_modules/devextreme/dist/js/localization/dx.messages.ja.js"></script>
<script type="text/javascript" src="../node_modules/devextreme/dist/js/localization/dx.messages.ru.js"></script>
<script type="text/javascript" src="../dist/devextreme-intl.js"></script>
</head>
<body>
<script>
DevExpress.localization.locale(navigator.language);
</script>
<h3>DevExtreme DateBox with default formatting</h3>
<div id="datebox-date"></div>
<div id="datebox-time"></div>
<div id="datebox-datetime"></div>
<script>
$(function() {
$("#datebox-date").dxDateBox({
type: "date",
value: new Date()
});
$("#datebox-time").dxDateBox({
type: "time",
value: new Date()
});
$("#datebox-datetime").dxDateBox({
type: "datetime",
value: new Date()
});
});
</script>
<h3>DevExtreme DateBox uses DevExtreme formatting</h3>
<div id="datebox-dxcustom"></div>
<h3>DevExtreme DateBox uses Intl formatting</h3>
<div id="datebox-custom"></div>
<script>
$(function() {
$("#datebox-dxcustom").dxDateBox({
displayFormat: "longDate",
value: new Date()
});
$("#datebox-custom").dxDateBox({
displayFormat: { year: 'numeric', month: 'long' },
maxZoomLevel: 'year',
value: new Date()
});
});
</script>
<h3>DevExtreme DateBox with rollers</h3>
<div id="datebox-rollers"></div>
<script>
$(function() {
$("#datebox-rollers").dxDateBox({
pickerType: "rollers",
value: new Date()
});
});
</script>
<h3>DevExtreme DataGrid with currency and date formatting</h3>
<div id="datagrid"></div>
<script>
$(function() {
$("#datagrid").dxDataGrid({
dataSource: [{
"ID": 1,
"OrderDate": "2014/04/10",
"SaleAmount": 11800,
}, {
"ID": 4,
"OrderDate": "2014/01/12",
"SaleAmount": 16050,
}, {
"ID": 5,
"OrderDate": "2014/01/22",
"SaleAmount": 14750,
}],
columns: [{
dataField: "OrderDate",
alignment: "right",
dataType: "date",
format: "longDate"
}, {
dataField: "SaleAmount",
alignment: "right",
format: { type: "currency", currency: "EUR" }
}],
editing: {
mode: "row",
allowUpdating: true,
allowDeleting: true,
allowAdding: true
},
"export": {
enabled: true
}
});
});
</script>
<h3>DevExtreme Scheduler</h3>
<div id="scheduler"></div>
<script>
$(function() {
$("#scheduler").dxScheduler({
dataSource: [{
text: "Book Flights to San Fran for Sales Trip",
ownerId: [2],
startDate: new Date(2015, 4, 25, 12, 0),
endDate: new Date(2015, 4, 25, 13, 0)
}, {
text: "Install New Database",
ownerId: [2],
startDate: new Date(2015, 4, 27, 9, 45),
endDate: new Date(2015, 4, 27, 11, 15)
}, {
text: "Launch New Website",
ownerId: [2],
startDate: new Date(2015, 4, 29, 12, 20),
endDate: new Date(2015, 4, 29, 14, 0)
}, {
text: "Stand-up meeting",
ownerId: [1, 2, 3, 4],
startDate: new Date(2015, 4, 25, 9, 0),
endDate: new Date(2015, 4, 25, 9, 15),
recurrenceRule: "FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR;UNTIL=20150530"
}],
views: ["agenda", "month", "week", "workWeek", "day"],
currentView: "workWeek",
currentDate: new Date(2015, 4, 25),
useDropDownViewSwitcher: false,
startDayHour: 8,
endDayHour: 19,
resources: [{
field: "ownerId",
allowMultiple: true,
dataSource: [{
text: "Samantha Bright",
id: 1,
color: "#cb6bb2"
}, {
text: "John Heart",
id: 2,
color: "#56ca85"
}, {
text: "Todd Hoffman",
id: 3,
color: "#1e90ff"
}, {
text: "Sandra Johnson",
id: 4,
color: "#ff9747"
}],
label: "Owner"
}],
width: "100%",
height: 600
});
});
</script>
</body>
</html>