Our pure JavaScript Scheduler component


Post by saranya.k@lnt »

We need to highlight the weekends , while the events has to be displayed. By adding some calendar code to Scheculer Pro, the weekends are highlighted. As these days are considered as non-working, any event that falls in these are not displayed. Is there any option to display the events but highlight the weekends.

 calendar : 'weekends',
    calendarsData : [
    	{
            id        : 'weekends',
            name      : 'Weekends',
            intervals : [
                {
                    recurrentStartDate : 'on Sat at 0:00',
                    recurrentEndDate   : 'on Mon at 0:00',
                    isWorking          : false
               }]
               }]

Post by mats »

So you do not want the scheduling engine to treat weekends as non-working time? Just want to show weekends and let events be scheduled on such dates?


Post by striker »

Use ResourceTimeRanges:
https://www.bryntum.com/examples/examples-scheduler/resourcetimeranges/

or TimeRanges:
https://bryntum.com/examples/examples-scheduler/timeranges/

We are using in our application ResourceTimeRanges for every week in range we need:

task.png
task.png (14.96 KiB) Viewed 614 times

Post by alex.l »

Hi saranya.k@lnt, are you unblocked now?

@striker, thank you for your reply! :)

All the best,
Alex


Post by saranya.k@lnt »

@alex.l, yeah I am able to access. Thanks.

Thanks @striker, I am able to achieve the requirement. I believe the timeranges requires each date or range of dates to be mentioned to highlight in specifically. To mark any holidays this is suitable.

Is there a way to set the configuration for days like saturday & sunday, and that repeats every week.


Post by mats »

Is there a way to set the configuration for days like saturday & sunday, and that repeats every week.

You can often find the answer by looking in our docs or demos :) Here's a demo showing recurring time ranges:

https://bryntum.com/examples/examples-scheduler/recurringtimeranges/


Post Reply