method to indicate store open/close hours

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

Version 3.0 provides necessary functionality

docs.dhtmlx.com/doku.php?id=dhtm … s_limiting

And the next sample in package
samples\03_extensions\25_advanced_limitation.html

Thanks for your reply. That is a cool feature, but it doesn’t do what I want. I want to be able to indicate the open/close hours, but allow the user to create events whenever they want.

Thanks,
Laurie

There is no built in solution for such kind of marking.
The only possible solution - use custom styling for the days, with custom background for each day, like in
samples/02_customization/03_hours_coloring.html

You can have different bgs for different days.

Is there a way to draw a line on certain hours, similar to the way the current time feature shows the current time by drawing a line?

Thanks!
Laurie

It can be done only through code modification