【问题标题】:FullCalendar - display full event title on calendarFullCalendar - 在日历上显示完整的事件标题
【发布时间】:2016-03-16 01:23:00
【问题描述】:

我使用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} '

【问题讨论】:

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


    【解决方案1】:

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

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

    我创建了a plnkr where you can reproduce it

    【讨论】:

      猜你喜欢
      • 2020-07-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多