Full screen display time of the week

Edit to add: Sorry, found the answer here:

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

timeFormat: { month: 'H:mm', '': 'H:mm-{H:mm}' }, 

end of editing

I am using fullcalendar, and I want to include the end time in the week and day views. I found Niko 's answer on how to display the final time:

 timeFormat: 'HH:mm { - HH:mm}' 

Nico wrote:

The blockquote time between {} is the end time. If you do not specify an end time between curly braces, it will just show the start time twice

How can I show only the end time in views other than the full month view? I would like the regular presentation of the week to begin and end. (In month mode, this takes up too much space.)

+4
source share
2 answers

Sorry, found the answer here:

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

 timeFormat: { month: 'H:mm', '': 'H:mm-{H:mm}' }, 
+5
source

UPDATE

The above answer no longer works in the latest version of FullCalendar. The correct answer is to use the displayEventEnd option for the view. Like this:

 views: { week: { displayEventEnd: true } } 
+2
source

Source: https://habr.com/ru/post/1369587/


All Articles