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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -