JQuery fullcalendar: Fadeout deleted Event

Heyhou

I want fadeOut "eventbar" in the calendar that I deleted. What should I do?

 eventClick: function(calEvent, jsEvent, view) {
     // $(this).animate({ opacity: 0 }, 1000); <- ???
     $('#kal').fullCalendar('removeEvents', calEvent.id);
 }

Thanks for ur answers!

+3
source share
1 answer

I don't know fullcalander, but I know a bit of jQuery. Maybe you want something like this:

 eventClick: function(calEvent, jsEvent, view) {
     $(this).animate({ opacity: 0 }, 1000, function() {
         $('#kal').fullCalendar('removeEvents', calEvent.id);
     });
 }

I don’t think $ (this) is right, I think you need some kind of link to the event bar. (e.g. class or id)

0
source

Source: https://habr.com/ru/post/1759894/


All Articles