如何显示另一个提交的标题,而不是jQuery FullCalendar上的事件标题? [英] How can I display another filed title, not an event title on a jQuery FullCalendar?

查看:164
本文介绍了如何显示另一个提交的标题,而不是jQuery FullCalendar上的事件标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在日历上,我想显示另一个字段标题(如requestID#)以及保留的时间而不是事件标题。我不知道我在哪里以及如何更改fullcalendar.js文件。感谢您的帮助。

解决方案

您使用什么事件来源?



如果你正在构建自己的,你可以在事件对象的title属性中放入 requestID#



或者您可以将其放在自定义字段中,例如: event.requestId ,并更改eventRender回调中的标题:

  eventRender:function(event,element){
element.find('。fc-event-title')。text(event.requesetId);
}


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.

解决方案

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);
    }

这篇关于如何显示另一个提交的标题,而不是jQuery FullCalendar上的事件标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆