Trigger jQuery Qtip on FullCalendar dayClick

后端 未结 6 2032
伪装坚强ぢ
伪装坚强ぢ 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 15:48

    I haven't been using qTip to be honest, but according to its documentation the 'show' option determines when to show the tooltip, it seems to be set to 'mouseover' as default, so try changing it to 'click', like this:

    $('#calendar').fullCalendar({
        dayClick: function(date, allDay, jsEvent, view) {
            $(this).qtip({ content: 'some html content', show: 'click' });
        }
    });
    

提交回复
热议问题