Trigger jQuery Qtip on FullCalendar dayClick

后端 未结 6 2031
伪装坚强ぢ
伪装坚强ぢ 2020-12-29 15:31

I have a jquery fullcalendar. I would like to trigger jquery QTip (or other jquery solution (such as a lightbox)) when I click on a day to bring up a list of options. This q

6条回答
  •  误落风尘
    2020-12-29 16:01

    I am working with fullCalendar and Qtip for a week now, and to me knepe's solution should work in ideal case.

    You can check first whether the function is actually getting called or not. Try something like :

    $('#calendar').fullCalendar({
        dayClick: function(date, allDay, jsEvent, view) {
             alert(date);
            }
    });
    

    If clicking on a day gives you an alert with that date, then the problem lies with Qtip implementation. If you don't get an alert, the problem is with fullCalendar implementation.

    As suggested by knepe, 'show: click' should show the Qtip. But if it is not, try :

    show: { when: { event: 'click' } }
    

    Lastly, don't forget to check the docs : http://craigsworks.com/projects/qtip/docs/reference/#show

提交回复
热议问题