Our pure JavaScript Scheduler component


Post 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


Post 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


Post 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.

All the best,
Alex


Post 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


Post by alex.l »

All the best,
Alex


Post 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?


Post by thomasb »

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


Post 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/

All the best,
Alex


Post by thomasb »

Hi Alex

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

Best,
Thomas


Post Reply