Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the cursor pointer on fullcalendar?

I'm using fullCalendar plugin for my project. I noticed that when I set the "editable: " into false, the cursor hover on the events becomes default instead of staying as a pointer cursor. How do I change this? Thanks!

like image 392
KelvinLegolas Avatar asked Aug 06 '14 06:08

KelvinLegolas


4 Answers

This should do the trick:

.myCalendar {
    cursor: pointer;
}

Using the proper css selector instead of .myCalendar, of course.
Looking at this example calendar, you're probably looking for .fc-event, to preserve the pointer when hovering over calendar events:

.fc-event{
    cursor: pointer;
}
like image 91
Cerbrus Avatar answered Nov 02 '22 22:11

Cerbrus


Add the following CSS.

.fc-content {
    cursor: pointer;
}

div.fc-content wraps the calendar cells, so adding cursor: pointer; to .fc-content will produce the desired behavior.

But is that really desired?

In general convention cursor:pointer is used for any clickable element.

like image 30
Sarbbottam Avatar answered Nov 02 '22 20:11

Sarbbottam


In my case simply adding

.fc-event{
    cursor: pointer;
}

to my scss class didn't work. It only works when i add ::ng-deep before it like so:

::ng-deep .fc-event{
    cursor: pointer;
}

I hope it helps anyone

like image 3
Maurice Avatar answered Nov 02 '22 20:11

Maurice


I noticed that if you just set editable to true then it will display the finger pointer on hover. I'm not sure why you would even want it to set it to false if you intend to let the user click an event.

So simply set the editable value to true during initialization:

$('#calendar').fullCalendar({
  editable: true
});
like image 2
user2812481 Avatar answered Nov 02 '22 22:11

user2812481