2016-11-16 37 views
0

私はイベントをクリックするとfullcalendarが正しく動作します。 このイベントのタイトルを私に与えます。 しかし、私は1時間に2つまたは3つのイベントがある場合、どのように私はすべてのタイトルのイベントを得ることができますか?fullcalendarですべてのイベントの内容を取得する方法

私は17時間で2つのイベントがあり、そのタイトルを取得したいと考えています。

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(); 
    }, 
}); 
}); 
+0

あなたのコードを表示して、何を試しましたか? – Hokascha

+0

ok eventclick()関数を使用してコード –

+0

を追加する質問を更新します。イベントのタイトルを取得できますが、ここで2つのイベントを取得します。 –

答えて

関連する問題