By default, FullCalendar stretches the event base on the starting date up to end date. For example,
{
"title": "2",
"start": "2017-12-17",
"end": "2017-12-20",
"icon": "fa-truck"
},
My problem is kinda similar here Recurring Events in FullCalendar, but this one uses time and days of week.
What I want is that the event "Truck" will keep appearing every date, from 2017-12-17, 2017-12-18, 2017-12-19, 2017-12-20.
This is my code.
function calendar(data){
$('#calendar').fullCalendar({
events: data,
eventRender: function(event, element) {
if(event.icon){
element.find(".fc-event-title").prepend("<i class='fa "+event.icon+"'></i>");
}
}
});
}