I wanted to import the events of a private google calendar into the fullCakendar using the first answer given in Fullcalendar: can it work with Google Calendars set to private? . I am using the example given in http://plnkr.co/edit/tkK8rk?p=preview and tried to modify it to suit my needs. I included the following code in the angular-ui-calendar.js after line 34 :
var extras = {
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
//events: $.fullCalendar.gcalFeed($feed_url.val()) ,
selectable: true,
selectHelper: true,
select: function(start, end) {
var title = prompt('Event Title:');
var eventData;
if (title) {
eventData = {
title: title,
start: start,
end: end
};
scope.calendar.fullCalendar('renderEvent', eventData, true); // stick? = true
}
scope.calendar.fullCalendar('unselect');
},
editable: true,
eventStartEditable : true ,
allDayDefault : false ,
droppable: true, // this allows things to be dropped onto the calendar
//eventLimit: true,
eventDurationEditable : true ,
eventRender: function (event, element) {
element.bind('mousedown', function (e) {
if (e.which == 3) {
scope.calendar.fullCalendar('removeEvents',event._id);
}
});
},
} ;
scope.calendar.fullCalendar(extras);
Everything is working properly but the calendar is not supporting dragging of events and changing duration. I cant see what the problem is. Can someone help me ?