开发者

jQuery fullcalendar: Fadeout deleted Event

开发者 https://www.devze.com 2023-01-11 14:02 出处:网络
He开发者_如何学Goyhou, I want to fadeOut the \"eventbar\" in the calendar I have deleted. What should I do?

He开发者_如何学Goyhou,

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

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

Thanks for ur answers!


I don't know fullcalander but I do know a little jQuery. Could it be 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 guess you need some sort of reference to the eventbar. (like a class or id)

0

精彩评论

暂无评论...
验证码 换一张
取 消