I'm blocked with a problem on full Calendar.
I have a calendar initialized with and initialView: 'resourceTimelineMonth'
, And I want to be able to add an event with a click on a cell. But i also want to delete an event on click on
So, I add selectable: true
to can add an event with :
select: function(event) {
calendar.addEvent({
title: '',
start: beginDate,
resourceId: personId,
end: endDate,
backgroundColor: 'red',
display: 'background'
});
}
That works well, but if I click on an existing event (to delete it) it's impossible to trigger eventClick
, I think it's due to a conflict between select
and eventClick
. But I can't resolve it.
You should take a look at eventClick! https://fullcalendar.io/docs/eventClick
Where you can implemente your custom "delete" function related to eventID