如何在fullcalendar中获取所有活动内容

时间:2016-11-16 17:40:35

标签: php jquery fullcalendar

我的fullcalendar工作正常, 当我点击事件时,它会给我这个事件的标题。 但我想要的是如果我在一小时内有两到三个事件,我怎么能得到所有头衔的事件?

例如,我在17h有两个事件,我想得到它们的标题。

enter image description here

fullcalendar代码:

 $('#calendar').fullCalendar({
  header: {
    left: 'prev,next today',
    center: 'title',
    right: 'agendaWeek'
  },
  defaultView:"agendaWeek",
  displayEventTime : false,
  selectable: true,
  selectHelper: true,
  minTime: '08:00:00',
  slotDuration: '00:60:00',
  maxTime: "22:00:00",  
  timeFormat: 'H(:mm)',
  contentHeight: 'auto',
  allDaySlot : false,
  timezone : 'local',
  defaultTimedEventDuration : '01:00:00',
  firstDay : 0,
  timeFormat : 'HH:mm',
  editable: true,
  eventLimit: true, // allow "more" link when too many events
  eventOverlap : false,
  eventLimit: true,
  selectOverlap : false,
  events: JSON.parse(json_events),
  eventClick: function(event){
    $('#modalTitle').html("Les Moniteurs dans cette heurs "+datetime);
    $('#fullCalModal').modal();
  },
});
});

1 个答案:

答案 0 :(得分:0)

您可以尝试此解决方案,但也请检查日期的时间部分:Fullcalendar.js get events of the day on click

最好的问候!
的Krzysztof