user2395639
user2395639

Reputation:

FullCalendar display event name only

is it possible to only display the event name on the calendar? right now it displays the time and event name. I would like only the event name to be displayed. I know there is a timeFormat function but I don't know how to make it so that time doesn't show. I tried timeFormat : false. That didn't work. It still showed the time AND showed date as well.

Upvotes: 0

Views: 1144

Answers (2)

Mohit Pandey
Mohit Pandey

Reputation: 3813

You can do that with css as well. Add css display property to none for fc-event-time class.

.fc-event-time {
   display : none;
}

Upvotes: 0

Esther
Esther

Reputation: 99

I have just included fullcalendar.js and javascript code invoking full calendar in js fiddle - http://jsfiddle.net/JETR/N2vaT/ for reference. Please note the line

$(element).find(".fc-event-time").text("");

which causes the event time to hide - this should be included in evenAfterRender function in javascript code

Upvotes: 2

Related Questions