Agular full calendar view events styling

329 Views Asked by At

I want to Add hover effects on Events of Angular Full-calendar-view(using this version ^5.10.2). I tried by using eventMouseEnter and eventMouseLeave functions but it's not helping me to add effects on events. Pic attached to show events on Full calendar.enter image description here

1

There are 1 best solutions below

0
VFG On

I don't know if you use Jquery, but if yes, you could define your hover style(s) in a class (in my case, .event_hover) and then do something like...

eventDidMount: function(info) {
    var $el = $(info.el);        
    $el.hover(function() {
        $(this).addClass("event_hover");
    }, function(){
        $(this).removeClass("event_hover");
    });
}

If you don't use jQuery, you may could do something similar in Javascript, but at the end the key is to modify the eventDidMount event. Hope it goes right for you.