开发者

bind event after fullCalendar has been created

开发者 https://www.devze.com 2022-12-25 15:00 出处:网络
Is there a way to bind event after fullCalendar has been created? Something like: jQuer开发者_运维知识库y( \'#calendar\' ).bind( \'dayClick\', function( date, allDay, jsEvent, view ){} );

Is there a way to bind event after fullCalendar has been created?

Something like:

jQuer开发者_运维知识库y( '#calendar' ).bind( 'dayClick', function( date, allDay, jsEvent, view ){} );


off course you can.

$('#calendar').fullCalendar('renderEvent',
                    {
                        title: 'title',
                        start: 'start date',
                        end: 'end date',
                        id: 'id',
                        description: 'description',
                        allDay: globalAllDay,
                                                 color: 'blue'
                    },
                    true 
                );


this is currently not possible, but i would really like to have it in fullcalendar. will probably be in 1.5 when i rearchitect some things. could you add a feature request to the issue tracker? thanks

0

精彩评论

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