I am using the Fullcalendar library, and I have an array of JavaScript objects:
arr = [{"monday":{"start_time":9,"end_time":10.5},"title":"English for Beginer"},{"tuesday":{"start_time":8.5,"end_time":10},"title":"English for Beginer"},{"wednesday":{"start_time":8.5,"end_time":10},"title":"English for Beginer"}]
According to the doc, I can set up my event sources like this:
{
events: [
{
title: 'Event1',
start: '2011-04-04T09:30',
end: '2011-04-04T10:30',
},
{
title: 'Event2',
start: '2011-05-05T9:30',
end: '2011-04-04T10:30',
}
// etc...
],
color: 'yellow', // an option!
textColor: 'black' // an option!
}
However, I only have the days in a week in my JavaScript objects, like monday, tuesday, wednesday, etc as you can see. Therefore, I am wondering if there is a way for me to configure my event sources like the following:
{
events: [
{
title: 'Event1',
start: 'MondayT09:30',
end: 'MondayT10:30',
},
{
title: 'Event2',
start: 'TuesdayT9:30',
end: 'TuesdayT10:30',
}
// etc...
],
color: 'yellow', // an option!
textColor: 'black' // an option!
}
I have been looking for a solution for a while, but still can't find one. Any suggestions or idea would be appreciated.