拖动事件时出现FullCalendar和qTip UI问题 [英] FullCalendar and qTip UI issue when dragging event
本文介绍了拖动事件时出现FullCalendar和qTip UI问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在周或日视图中拖动活动时。随机地,qtips将被渲染,旧屏幕仍在屏幕上。
When dragging an event in week or day view. Randomly, qtips would be rendered with the old ones being still on the screen.
我一直在使用apis禁用qtips,但没有任何结果。以下是我为fullcalendar事件渲染事件配置的qtip:
I have been disabling the qtips using apis but no result whatsoever. Following is my qtip configuration for fullcalendar event render event:
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'
}
);
}
推荐答案
@Ibrahim,使用eventAfterRender函数。它适用于我。
@Ibrahim, Use eventAfterRender function. It works for me.
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'
});
}
这篇关于拖动事件时出现FullCalendar和qTip UI问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文