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

时间:2016-03-16 01:23:00

标签: javascript ruby-on-rails ruby-on-rails-4 fullcalendar

我正在使用fullcalendar显示事件,事件标题在日历上连接并且只在一行显示,如何显示完整的事件标题?

这是我的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} '

1 个答案:

答案 0 :(得分:4)

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

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

我创建了a plnkr where you can reproduce it

相关问题