Wednesday 15 May 2013

javascript - FullCalendar click and drag multiple events -


I am trying to set up a calendar where a user clicks on a weekly view and drages several times by selecting the slot ('AgendaWeek') For example - Mon 2-4, Tuesday 1: 30-2: 00, etc.

What is the recommended way to do this? Currently every time a new selection is made, the last one is automatically approved.

Every time a user selects a timerange, it creates a type of event for the user's visual response It really is not an incident yet, and when the user chooses another, it is removed.

What you need to do, adds a real event when any selection is made.

Use.

The user once triggers the slot selection (clicks and drags) every time. In it, call to add it as a real event to the calendar. And then call to remove the manual placeholder. Choose

 : function (start, end, js, scene,) {$ ("# calendar"). FullCalendar ('addEventSource', [{start: start, end,},]); $ ("# Calendar") Fullcalendar ("deselect") .; }  


No comments:

Post a Comment