I use FullCalendar in my application and its work.
Now I need to change the color of the Italian holidays to red. I did it on the weekend, but:
- I do not know how to add holidays to the calendar.
- How can I change my color.
This is my code:
<script>
var calendar = $('#calendar').fullCalendar({
header: {
left: 'prev',
center: 'title',
right: 'next',
},
defaultView: 'month',
lang: 'it',
height: 600,
dayClick: function(date, jsEvent, view) {
$(this).css('background-color', 'green');
$('#myModal').modal();
$('#spnDate').html(date.format('DD/MM/YYYY'));
$('#date').attr('value', date.format('DD/MM/YYYY'));
},
editable: true,
});
</script>
source
share