Tooltip for fullcalendar in year view

前端 未结 5 933
一生所求
一生所求 2020-12-08 05:35

I want to add tooltip for the fullcalendar in year view. I tried with the below one but it added tooltip to month view. I tried with google but did not find anything related

5条回答
  •  一向
    一向 (楼主)
    2020-12-08 05:48

    since 1.5 version, you can use qtip (i also use tipsy but it should work with tooltip) to display a tip on an event:

    $('#calendar').fullCalendar({
        events: [
            {
                title: 'My Event',
                start: '2010-01-01',
                description: 'This is a cool event'
            }
            // more events here
        ],
        eventRender: function(event, element) {
            element.qtip({
                content: event.description
            });
        }
    });
    

    doc source: http://arshaw.com/fullcalendar/docs/event_rendering/eventRender/

    hope this helps

提交回复
热议问题