fullcalendar / fullcalendar-angular

The official Angular component for FullCalendar
https://fullcalendar.io/docs/angular
MIT License
1.07k stars 175 forks source link

Dragging between two calendars along with revert() #342

Closed aroshanzamir closed 3 years ago

aroshanzamir commented 3 years ago

I have two calendars (source, destination), I want to drag an event from source to destination.

In the destination calendar, there is an event named eventReceive; In this event sometime I need to call revert(); Is it possible to do that?

Source

<full-calendar #sourceCalendar  
    ...
    (eventLeave)="eventLeave($event)">
</full-calendar>

Destination

<full-calendar #destinationCalendar
    ...
    (eventReceive)="eventReceive($event)">
</full-calendar>

In typescript:

eventReceive($event){
   // How to revert ...
}
acerix commented 3 years ago

If this is a question, please refer to the support page and use Stack Overflow for help. If this is a bug, please supply a runnable, stripped-down demonstration.