Fullcalendar Add Event

Hey, I need to switch from jquery weekcalendar to fullcalendar, and I'm having trouble understanding how to add new events. In weekcalendar it is easy, I run the addEvent functions, open the dialog box and there I have my form and keep everything in order with ajax. I also have selectbox where all the time from the settings of the first hour and the final hour of the day. Is it possible to have something similar to fullcalendar? Weekcalendar has getTimeslotTimes () that deals with time and is easy to work with, what is the name of such a function in fullcalendar?

Greetings

+4
source share
1 answer

You can use the dayclick event:

var calendar = $('#calendar'); calendar.fullCalendar({ dayClick: function(date, allDay, jsEvent, view) { calendar.fullCalendar('renderEvent', { title: 'YOUR TITLE', start: date, allDay: true }, true ); } }); 
+4
source

All Articles