My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2561: Events available to DayRender
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Aug 2015


Sign in to add a comment
 
Reported by calguy1...@gmail.com, Aug 11, 2015
In my latest use of FullCalendar I am using only all day events, with some background events, and multiple full-day events per calendar day.  I only use the month view.

I wanted to be able to add specific styles and functionality to the day cell depending upon events for that day.

i.e:  if the day being rendered had a holiday on it... (got the holidays as events via an ical feed), change the style, and add a different button than if it was a regular weekday with no holiday associated with it.

The problem is the events are loaded after the calendar itself is rendered.  so the events are not available to the dayRender method via the 'clientEvents' function.

I think it's an order of execution issue here on rendering... in that (at least optionally) the events should be available when the calendar itself is rendering.





Aug 13, 2015
Project Member #1 adamrs...@gmail.com
i think you'll be able to achieve this with background events:
http://fullcalendar.io/docs/event_rendering/Background_Events/

fyi, background events are run through the eventRender callback just like any other event.
Status: Done
Sign in to add a comment

Powered by Google Project Hosting