2016-02-02 41 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' 
    }); 
}