| Issue 72: | example for .fullCalendar( 'updateEvent', calEvent) | |
| 1 person starred this issue and may be notified of changes. | Back to list |
hi,i dont konw how to use updateEvent method, could you show me a example thanks chris
Aug 6, 2009
thanks loadbrain, here is a more thorough example:
var events = $('#calendar').fullCalendar('getEventsById', 99);
if (events.length) {
var event = events[0];
event.title = "new title";
event.start = new Date(2009,10,1);
event.end = new Date(2009,10,3);
$('#calendar').fullCalendar('updateEvent', event);
}
Status:
Done
|
|
| ► Sign in to add a comment |
Quick & dirty: init your calendar like this: theCalendar = $('#calendar').fullCalendar({.... then you can call theCalendar.fullCalendar( 'updateEvent', event);