I'm working on a project and I need to know if there is a way to capture dayClick events specifically in days with already set events, in such a way that I can add more events using a popup.
Asked
Active
Viewed 416 times
-5
-
add code snippet. check my basic answer which might help you. – Venkat.R Dec 01 '16 at 19:02
-
it is more of avoiding confusion between day and event clicks in such a way i edit an existing event if clicked, or add a new one if and empty space in the same day is clicked, without needing an "add event" button – moora younes Dec 01 '16 at 19:06
-
share exactly what you tried. – Venkat.R Dec 01 '16 at 19:11
1 Answers
0
Refer dayClick Method. Below is the Code Snippet and I suggest qTip for Full Calendar PopUp.
$('#calendar').fullCalendar({
dayClick: function(date, jsEvent, view) {
alert('Clicked on: ' + date.format());
alert('Coordinates: ' + jsEvent.pageX + ',' + jsEvent.pageY);
alert('Current view: ' + view.name);
// change the day's background color just for fun
$(this).css('background-color', 'red');
}
});
Refer this Answer for Full Calendar and qTip Integration.