我正在使用FullCalendar3.5.1一切正常工作,除非當天有多個事件(它們通過JSON動態傳遞)時,它只顯示+ N多。示例I已經看到它應該顯示至少一個事件標題,然後再說+(N-1)。 但對我來說,即使有2個事件顯示它沒有說+2更 FullCalendar顯示+ N多但不是標題
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultDate: new Date(),
editable: true,
eventBackgroundColor: '#3672BB',
eventLimit: {
'default': false // display all events for other views
},
eventClick: function(calEvent, jsEvent, view) {
if (calEvent.isSvey){
LoadApptPage(calEvent.eventID,'2');
}
else{
LoadApptPage(calEvent.eventID,'1');
}
},
events: [{"aID":"62241-008","start":"10\/11\/2017","eventID":9608,"isSvey":1,"autoschld":0,"missed":0,"title":"62241-008 - "},{"aID":"162215-003","start":"10\/11\/2017","eventID":9606,"isSvey":1,"autoschld":0,"missed":0,"title":"162215-003 - Construction LLC"},{"aID":162738,"start":"10\/24\/2017","eventID":9607,"isSvey":1,"autoschld":1,"missed":0,"title":"162738 - "}],
eventRender: function(event, element) {
//element.find(".fc-title").remove();
element.find(".fc-time").remove();
var pbSveyFlag = event.isSvey ? 2 : 1;
//var new_description = '<a style="color:#FFF;font-Weight:bold;" href="javascript:LoadApptPage(' + event.eventID +',' + pbSveyFlag +')">'
// + event.title + '</a><br/><br/> +'
var new_description =
'<br/><a style="color:#FFF;font-Weight:bold;" href="javascript:LoadFurPage(' + ''' + event.aID + ''' +',' + '''+pbSveyFlag +''' +')">'
+ '<strong>View: </strong>' + '</a>' + ' '
+ generateLink(event.autoschld,event.missed,event.eventID,event.aID)
;
element.append(new_description);
}
});
});
向我們展示你的代碼,和一組事件數據的最小的,所以我們可以盡力幫助[如何創建一個最小的,完整的,和可覈查的示例](HTTPS:// stackoverflow.com/help/mcve) –
已添加代碼 –