-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
50 lines (45 loc) · 1.17 KB
/
Copy pathindex.js
File metadata and controls
50 lines (45 loc) · 1.17 KB
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
Ext.setup({
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
icon: 'icon.png',
glossOnIcon: false,
onReady : function() {
/*new Ext.FullCalendar({
fullscreen : true,
scroll : 'vertical'
});*/
new Ext.Panel({
fullscreen : true,
layout : {
type : 'fit'
},
dockedItems : [{
xtype : 'toolbar',
title : 'Calendar'
}],
items : [{
xtype : 'fullcalendarpanel',
listeners : {
dayclick : function(date, allDay, jsEvent, view, fc){
if (allDay) {
alert('Clicked on the entire day: ' + date);
}else{
alert('Clicked on the slot: ' + date);
}
alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
alert('Current view: ' + view.name);
// change the day's background color just for fun
//$(fc).css('background-color', 'red');
},
eventclick : function(calEvent, jsEvent, view, fc){
alert('Event: ' + calEvent.title);
alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
alert('View: ' + view.name);
// change the border color just for fun
//$(fc).css('border-color', 'red');
}
}
}]
});
}
});