php - How to add event to a date in fullcalender on clicking a date -
i using fullcalender. presently adding event date using drag option.now need add event clicking on particular date.
is there option?
i found code in documentation:
$('#calendar').fullcalendar({ dayclick: function(date, jsevent, view) { alert('clicked on: ' + date.format()); alert('coordinates: ' + jsevent.pagex + ',' + jsevent.pagey); alert('current view: ' + view.name); // change day's background color fun $(this).css('background-color', 'red'); } });
edit: dayclick
believe you're looking for.
Comments
Post a Comment