How can I display another filed title, not an event title on a jQuery FullCalendar?

戏子无情 提交于 2019-12-13 06:34:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!