2014-01-24 99 views

回答

0

基于FullCalendar文档qtip正在使用方式如下:

$('#calendar').fullCalendar({ 
    events: [ 
     { 
      title: 'My Event', 
      start: '2010-01-01', 
      employee: 'name' 
     } 
     // more events here 
    ], 
    eventRender: function(event, element) { 
     element.qtip({ 
      content: event.employee 
     }); 
    } 
}); 

下面是关于qtip到文档的链接:http://arshaw.com/fullcalendar/docs/event_rendering/eventRender/

我希望这可以帮助。

+0

我有这个错误(Uncaught TypeError:对象#的属性'员工'不是函数)。看到这里的代码 - > http://pastebin.com/Xfa2tnsd – SaroVin

+0

你应该包括员工在事件: – jcarlo

+0

我编辑我的答案上面,以反映你的event.employee – jcarlo