Page 1 of 1

[ANGULAR] Scheduler Pro: Visually highlighting the weekends

Posted: Tue Oct 04, 2022 1:15 pm
by thomasb

Hi,

I have a very simple scheduler pro project: here is the zip file: https://drive.google.com/file/d/1Ka3Jiw9hQk0vkjE69V_o5w02AwAerid2/view?usp=sharing

Here I just want to visually highlight the weekends. Now in the project they are highlighted but i cannot create an event since in the project config the "isworking" is set to false. The problem I have, if I set the "isworking" to true the weekends don't get highlighted anymore.

How can I do this?

Thanks in advance.
Best regards,
Thomas


Re: [ANGULAR] Scheduler Pro: Visually highlighting the weekends

Posted: Tue Oct 04, 2022 2:48 pm
by thomasb

ok i found something:

I have following set, according to: viewtopic.php?f=44&t=11550

nonWorkingTime : {
      highlightWeekends : true
    },

if I use the "basic" scheduler:

<bryntum-scheduler>

It highlights the weekend

if I use the pro version:
<bryntum-scheduler-pro>

It happens nothing. I really want the exact behavior of the basic version in the pro version?

Can you help me? I'm a bit frustrated, that it's so timeconsuming just to highlight the weekends, since it's working in the basic and not in the pro.

Thanks
Thomas


Re: [ANGULAR] Scheduler Pro: Visually highlighting the weekends

Posted: Wed Oct 05, 2022 8:56 am
by alex.l

Scheduler and SchedulerPro are not the same.
Please check docs https://bryntum.com/docs/scheduler-pro/api/Scheduler/feature/NonWorkingTime

This feature is off by default for Scheduler, but enabled by default for Scheduler Pro in which case it is attached to the configured calendars and therefore does not show auto-generated weekends as non-working time.

SchedulerPro has calendars which you need to specify
https://bryntum.com/docs/scheduler-pro/guide/SchedulerPro/basics/calendars
and add weekends as non working time.
Check sources of this example https://bryntum.com/examples/scheduler-pro/non-working-time/
It places in examples/non-working-time/ folder in sources you downloaded.


Re: [ANGULAR] Scheduler Pro: Visually highlighting the weekends

Posted: Thu Oct 06, 2022 3:16 pm
by thomasb

Hi Alex

Thanks for your answer.

As you can see in my project I configured the calendar. But how I can then visualize the weekends? And still make as working time. I don't want them as non working time.

Is that possible?

Regards,
Thomas


Re: [ANGULAR] Scheduler Pro: Visually highlighting the weekends

Posted: Thu Oct 06, 2022 3:18 pm
by alex.l

Re: [ANGULAR] Scheduler Pro: Visually highlighting the weekends

Posted: Thu Oct 06, 2022 3:44 pm
by thomasb

Is there not a simpler way like in the scheduler version?
Because in the demo the label hides for example "8 am". I don't want to hide the labels "saturday" and "sunday".
You know what I mean?


Re: [ANGULAR] Scheduler Pro: Visually highlighting the weekends

Posted: Thu Oct 06, 2022 3:55 pm
by thomasb

Actually something like this: https://bryntum.com/examples/scheduler-pro/resourcehistogram/, but just make them "workable"


Re: [ANGULAR] Scheduler Pro: Visually highlighting the weekends

Posted: Thu Oct 06, 2022 4:05 pm
by alex.l

"Workable" highlighted periods are called TimeRanges. That's not required to make headers, it may be hidden as well with this flag set to false https://bryntum.com/docs/scheduler-pro/api/Scheduler/feature/TimeRanges#config-showHeaderElements

Check this demo too https://bryntum.com/examples/scheduler-pro/highlight-time-spans/


Re: [ANGULAR] Scheduler Pro: Visually highlighting the weekends

Posted: Fri Oct 07, 2022 9:51 am
by thomasb

Hi Alex

Alright, thanks a lot I'll try that. you can close this issue.

Best,
Thomas