-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathform.js
62 lines (61 loc) · 2.14 KB
/
form.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady: function(options) {
Ext.create('Ext.form.Panel', {
fullscreen : true,
items: [{
xtype : 'fieldset',
items : [{
xtype: 'datetimepickerfield',
name : '12hrdt',
label: '12 Hr DateTime',
value: new Date(),
picker: {
yearFrom: 1980,
minuteInterval : 1,
ampm : true,
slotOrder: ['month', 'day', 'year','hour','minute','ampm']
}
},{
xtype: 'datetimepickerfield',
name : '24hrdt',
label: '24 Hr DateTime',
value: new Date(),
dateTimeFormat : 'Y-m-d H:i',
picker: {
yearFrom: 1980,
minuteInterval : 1,
ampm : false,
slotOrder: ['month', 'day', 'year','hour','minute']
}
},{
xtype: 'datetimepickerfield',
name : '12hr',
label: '12 Hr Time',
value: new Date(),
dateTimeFormat : 'h:i:A',
picker: {
yearFrom: 1980,
minuteInterval : 1,
ampm : true,
slotOrder: ['hour','minute','ampm']
}
},{
xtype: 'datetimepickerfield',
name : '24hr',
label: '24 Hr Time',
value: new Date(),
dateTimeFormat : 'H:i',
picker: {
yearFrom: 1980,
minuteInterval : 1,
slotOrder: ['hour','minute']
}
}]
}]
});
}
});