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)
您可以添加CSS行来调整标题的显示:
.fc-month-view span.fc-title{
white-space: normal;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3634 次 |
| 最近记录: |