My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1454: eventRender - modify allDay param
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by yann.gle...@gmail.com, Jun 29, 2012
Hi.
When events are rendered, I trying to modify the allDay param of each events depending on the event duration. It works fine, but the concerned events are displayed in the allDay area only when I drag an element in the calendar.
Do you, please, have an issue ?
Thanks.

eventRender : function(event,element,view){
   if(event.start<new Date()){
      event.editable = false;
   }
   if(event.end-event.start>86400000){
      event.allDay = true;
   }
}
Aug 18, 2013
Project Member #1 adamrs...@gmail.com
`eventRender` is not the best place to modify event data like this. you should probably do this in `eventDataTransform`:
http://arshaw.com/fullcalendar/docs/event_data/eventDataTransform/
Status: Done
Sign in to add a comment

Powered by Google Project Hosting