繁体   English   中英

FullCalendar-在日历上显示完整的事件标题

[英]FullCalendar - display full event title on calendar

我正在使用全日历显示事件,事件标题在日历上并置,仅显示在一行上,如何显示完整的事件标题?

这是呈现日历的我的bookings.js.coffee文件

$(document).on 'ready page:load', ->
  $('#calendar').fullCalendar
    editable: false,
    header:
      left: 'prev,next today',
      center: 'title',
      right: 'month,agendaWeek,agendaDay'
    defaultView: 'month',
    height: 500,
    slotMinutes: 30,

    eventSources: [{
      url: '/bookings',
    }],

    timeFormat: 'h:mm t{ - h:mm t} '

您可以添加CSS行来调整标题的显示:

   .fc-month-view span.fc-title{
         white-space: normal;
   }

我创建了一个plnkr,您可以在其中复制它

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM