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

rap*_*tle 0 javascript ruby-on-rails fullcalendar ruby-on-rails-4

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

这是呈现日历的我的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} '
Run Code Online (Sandbox Code Playgroud)

Mar*_*ero 5

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

   .fc-month-view span.fc-title{
         white-space: normal;
   }
Run Code Online (Sandbox Code Playgroud)

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