Fullcalendar eventMouseover日期视图

时间:2014-12-05 09:53:16

标签: javascript jquery fullcalendar

我有一个fullcalendar组件,其中包含一个月视图中多天的事件(即连续事件未在视图中分成不同的日期)。我正在尝试创建悬停功能,以便触发一个动作,该动作取决于事件ID和鼠标悬停发生的日期。似乎使用eventMouseover我只能检索事件的详细信息,但不能检索悬停事件被触发的那一天。如果没有将事件分解为多天,是否有任何解决方案?

//pseudo add some events that span multiple days
def calendarEvents(events)
    calendarEvents = []
    for(event:events)
        cEvent = {}
        cEvent.startDate = event['start']
        cEvent.Id = event['name']
        cEvent.endDate = event['end']
     calendarEvents += cevent

 return calendarEvents.json()


 //pseudo JS:
    $('#calendar').fullCalendar({
    <<settings>>
    events: calendarEvents(<<events structure>>)
    eventMouseover: function(event,jsEvent,opt){
        loadPage(...+'?id='+event.Id+'&day='+<<need event day here>>)
    })

So the loadPage required the event name and the day that the mouseover occurred on.

0 个答案:

没有答案