Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent fullcalendar to show the start-hour in the event headline?

Tags:

fullcalendar

in the monthview fullcalendar has the nice feature to show the start time in the top line of non-allDay events. This might be useful if you don't want to provide further details in the event title.

I want to show several details in the month view, like start and end time (15.00 - 18-00), location, etc.

This leads to the fact that fullcalendar shows my events like this: "15 15.00 - 18.00".

Is there any way to prevent fullcalendar from showing the start time OR is there any way to get fullcalendar to show the full timespan (15.00 - 18.00)?

Thanks. Alex

like image 640
user1214617 Avatar asked Feb 16 '12 19:02

user1214617


3 Answers

Try this, it works for me:

$('#calendar').fullCalendar({
     displayEventTime : false
});

That should prevent fullcalendar to show the start-hour in the event headline.

like image 163
Raymond Avatar answered Oct 14 '22 22:10

Raymond


This is what you are looking for...

http://arshaw.com/fullcalendar/docs/text/timeFormat/

timeFormat: 'H(:mm)' // uppercase H for 24-hour clock

I beleive if you want to remove it all you would have to do is include an empty string aka...

timeFormat: ''(, or no , depending on if there is another object following)
like image 20
Juan Gonzales Avatar answered Oct 14 '22 22:10

Juan Gonzales


As @Isaak Kleinman said in a comment, this is the correct syntax:

timeFormat: ' ',       //with the space
like image 39
kneidels Avatar answered Oct 14 '22 23:10

kneidels