FullCalendar and qTip UI issue when dragging event

喜欢而已 提交于 2019-12-11 00:29:14

问题


When dragging an event in week or day view. Randomly, qtips would be rendered with the old ones being still on the screen.

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

回答1:


@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'
    });
}


来源:https://stackoverflow.com/questions/35149007/fullcalendar-and-qtip-ui-issue-when-dragging-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!