我的完整日历会看到这样的时刻: Screen Fullcalendar before
是否可以禁用网格功能,以便无间隙地显示事件。例如,像这样:
当前代码:
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
right: 'title'
},
currentLangCode: 'de',
lang: 'de',
buttonIcons: true,
weekNumbers: true,
editable: false,
eventLimit: false,
firstDay: 1,
height: 'auto',
events: {
url: 'ajax/ajax.get_events.php?simulate_user=<?=$_SESSION['admin']['simulate_user'];?>'
},
eventClick: function(calEvent, jsEvent, view) {
if(calEvent.project_id != 0)
window.open('projects.php?uid='+calEvent.project_id, '_blank');
},
eventAfterRender: function (event, element) {
if(event.time > 0)
{
var maxHeight = 1000;
var minHeight = element.outerHeight();
var height = event.time / 1.5;
if(height > maxHeight) height = maxHeight;
if(height < minHeight) height = minHeight;
$(element).height(height);
}
},
eventRender: function (event, element) {
element.find('.fc-title').html(event.title);
},
hiddenDays: [0]
});