开发者

jquery fullcalendar : operation after data add

When we add a event to jquery full开发者_开发知识库calendar (in selectable mode)on click or selecting dates. How to read the added event in jquery ?


EDIT - after your comment i think you must use the select function:

select: function(start, end, allDay) {
    var title = prompt('Event Title:');
    if (title) {
        alert('start:'+start+' end: '+end);
        calendar.fullCalendar('renderEvent', {
            title: title,
            start: start,
            end: end,
            allDay: allDay
        }, true // make the event "stick"
        );
    }
    calendar.fullCalendar('unselect');
},

Look at the fiddle here, it alerts start and end date, but you also have access to tile and allDay parameters.http://jsfiddle.net/SYBsq/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜