问题
On the calendar I'd like to display another field title (like requestID#) along with a time reserved instead of the event title. I'm not sure where and how I need to make changes to the fullcalendar.js file. Thanks in advance for your help.
回答1:
What eventsource are you using?
If you are building your own, you could just put requestID#
in the title property on the event object.
Or you could put it in a custom field like: event.requestId
and change the title in the eventRender callback like so:
eventRender: function (event, element) {
element.find('.fc-event-title').text(event.requesetId);
}
来源:https://stackoverflow.com/questions/6376694/how-can-i-display-another-filed-title-not-an-event-title-on-a-jquery-fullcalend