2016-02-02 63 views
2

当在日或日视图中拖动事件时。随机地,qtips将被渲染,而旧的仍然在屏幕上。拖动事件时的FullCalendar和qTip UI问题

enter image description here

我一直禁止使用API​​的qtips,但没有任何结果。以下是我对fullcalendar事件渲染事件的qtip配置:

eventRender = function (event, element) { 
    $(element).qtip(
     { 
      content: '<div>Hello, World!</div>', 
      position: { 
       target: 'mouse', // Track the mouse as the positioning target 
       adjust: { x: 5, y: 5 } // Offset it slightly from under the mouse 
      }, 
      style: 'qtip-light' 
     } 
    ); 
} 

回答

3

@Ibrahim,使用eventAfterRender函数。这个对我有用。

eventAfterRender: function(event, element, view) { 
    $(element).qtip(
    { 
     content: '<div>Hello, World!</div>', 
     position: { 
      target: 'mouse', // Track the mouse as the positioning target 
      adjust: { x: 5, y: 5 } // Offset it slightly from under the mouse 
     }, 
     style: 'qtip-light' 
    }); 
}