4
votes

I'm using the Full calendar Resource View of jarnokurlin (https://github.com/jarnokurlin/fullcalendar), which was an extension of Full calendar of AdamShow.

My issues is I want to indicate the holidays in the time line by changing the cell background color in front of each resource. Different resources may be from different countries so I have to change the colors of the day cells accordingly.

How to do this?

2
Share you code kindly - chapskev
Hi, my code is a mess. You can find the initial one in here "github.com/jarnokurlin/fullcalendar" - Thanushka

2 Answers

1
votes

Your question is old, but still relevant. Here is a solution, I think: https://fullcalendar.io/docs/background-events

You can create a new event which apears in the background, not like the others.

0
votes
$('#calendar').fullCalendar({
 events: [{
                        title: 'All Day Event',
                        start: new Date(y, m, 1),
                        backgroundColor: '#000'
                    }, {
                        title: 'Long Event',
                        start: new Date(y, m, d - 5),
                        end: new Date(y, m, d - 2),
                        backgroundColor: '#dedede',
                    },
}]

});