开发者

FullCalendar with live event

开发者 https://www.devze.com 2023-04-12 11:11 出处:网络
I need to fire FullCalendar on live() method. So, I tried this: $(\'.full-calendar\').live(\'fullCalendar\', function(){

I need to fire FullCalendar on live() method. So, I tried this:

$('.full-calendar').live('fullCalendar', function(){
    return 开发者_JAVA百科{ header : .... //options here }
});

But this doesn't work. Do you think is possible to achieve this?


fullcalendar is not a supported event by .live()ref. Actually, this is not an event at all (unless you created it by yourself but it wouldn't then be supported by .live().

Your full calendar creation must be triggered by a real event (click, double-click,...)

You could probably use something like:

$('.full-calendar').live('click', function() {
   $('#calendar').fullCalendar({
        // put your options and callbacks here
    })
});
0

精彩评论

暂无评论...
验证码 换一张
取 消