I want to be able to show the opening and closing hours of a store on the week view. I’d either like the after-hours time to be colored differently or to have a line drawn to show the opening/closing hours.
I saw that changing the background image can change where the “workday” is shown. But in this case, the opening and closing hours will vary based on the day. For example, a store could be open/close from 9:00 AM - 9:00 PM on Monday. But Sunday the store will be opened for a shorter period of time, from 10:00 AM - 5:00 PM. Since store hours often change during holidays (like Christmas), I do NOT want to use pre-defined background images like …/common/hour_bg.png. I do not want to have lots of images for all the possible combinations of opening and closing store hours. That seems too complicated.
In addition, the application will be used by different stores that have different open/close hours, so managing background images will be difficult.
Even though I would like some indication of when the store is opened or closed, this should not prevent the user from creating events any time of the day. I tried the following, but it does NOT work since only the 9 - 5 hours are shown. This prevents the user from opening an event while the store is closed.
In my init() function, I tried…
scheduler.config.first_hour = 9;
scheduler.config.last_hour = 17;
scheduler.config.limit_time_select = false;
But only the hours from 9:00 - 17:00 showed on the calendar, which is not what I am trying to do.
Is it possible to do what I’m talking about?
Thanks,
Laurie