-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.js
executable file
·38 lines (37 loc) · 978 Bytes
/
index.js
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
Ext.setup({
glossOnIcon: false,
onReady: function(options) {
datetimePicker = new Ext.ux.touch.DateTimePicker({
useTitles: true,
id: 'dt',
value: {
day: 23,
month: 2,
year: 2000,
hour: 13,
minute: 45
},
listeners: {
"hide": function(picker) {
window.alert((picker.getValue()));
}
}
});
var panel = new Ext.Panel({
fullscreen: true,
layout: {
type: 'vbox',
align: 'center',
pack: 'center'
},
items: [{
xtype: 'button',
ui: 'normal',
text: 'Show DateTimePicker',
handler: function() {
datetimePicker.show();
}
}]
});
}
});