I am trying to find a way to trigger an eventClick on a particular event programmatically.
In my application, users drag & drop events onto the calendar and then would have to click on it to insert data on a pop-up form .
I would like to bring up that form automatically by triggering an eventClick. Anyone ?
Cheers
Here is my code :
var calendar = $('#calendar').fullCalendar({
buttonText: {
prev: '<i class="icon-chevron-left"></i>',
next: '<i class="icon-chevron-right"></i>'
},
header: {
left: 'prev,next today',
},
eventSources: [{
// a bunch of event sources
}],
drop: function(date, allDay) { // this function is called when something is dropped
// do some stuff to the event that has been dropped
var event = ...; // I know how to get the event object from here
**// TRIGGER 'eventClick' ON EVENT OBJECT DROPPED IN ORDER TO SHOW FORM**
},
eventClick: function(calEvent, jsEvent, view) {
// Show the data entry form
}
});