Hello please assist me with this. I have a fullcalendar developed in weekview. I have several events per day where I calculate the duration of each event using:
var duration = moment.duration(event.end.diff(event.start));
var mins = duration.asMinutes();
element.find('.fc-title').append("<span class ='timeduration'>" + " " + mins + " min." + "</span>");
I would appreciate if someone could assist with showing me how I can display total of those mins per day and append to the header of the day.
So for example if this week on Wed I have 2 events showing and one is 20 mins long and another 10 mins long, I want to see total of 30 mins for that day next to Wednesday.
If Friday only has 1 event for 10 mins I want to see 10 in the header near Friday.
Thanks