search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Remove non Business Hours

Asked by Eduardo Luis
2 years ago.

Is there a way to totally remove the non business hours - not even scrolling up.
If BusinessHours start at 8AM and ends at 9PM, it would be nice to not show the interval between 9PM and 8AM, not even with scroll.

Thank you.

Answer posted by Dan Letecky [DayPilot]
2 years ago.

This is possible - you need to add heightSpec: "BusinessHoursNoScroll" to the config:
https://api.daypilot.org/daypilot-calendar-heightspec/

It's supported in the Lite version as well.

In the Pro version, there are additional options, like dayBeginsHour/dayEndsHour which let you configure it more finely (combine scrolling with limited hours displayed):
https://api.daypilot.org/daypilot-calendar-daybeginshour/
https://api.daypilot.org/daypilot-calendar-dayendshour/

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.