View only hours of work in a full-screen calendar

enter image description here

I want to show only working hours in the daily agenda from 8:30 to 17:00, as shown below:

enter image description here

+5
source share
2 answers

You ask how to hide hours outside of working hours? If so, use the minTime and maxTime parameters:

http://fullcalendar.io/docs/agenda/minTime/

http://fullcalendar.io/docs/agenda/maxTime/

for example, for a calendar from 9:00 to 17:00:

$(document).ready(function() { $('#calendar').fullCalendar({ ... minTime: "09:00:00", maxTime: "17:00:00", ... }); }); 
+10
source

Adding to the minTime and maxTime settings as @scottysmalls, adding height: 'auto', will help to remove the empty area at the bottom.

+3
source

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


All Articles