I am working with the jQuery weekcalendar to show a web based calendar with appointments. Some build-in functions like setEventUserId
store some variables in the calEvent.
What do I have to do to store custom variables in this calEvent object?
Something like:
setEventCategoryId: function(calendarId, calEvent, calendar) {
calEvent.calendarId = calendarId;
return calEvent;
},
getEventCategoryId: function(calEvent, calendar) {
return calEvent.calendarId;
}
But when do I call this method? And is it enough to only have this piece of code to store the variable?
Any input is much appreciated.