Our powerful JS Calendar component


Post by anthony.dasre »

Hello everyone,

Are we currently exploring a solution to display time ranges with custom colors for each resource in the calendar's resourceView?

For instance, in the demo provided at https://bryntum.com/products/calendar/examples/timeranges/.

I'd like to show the "breakfast" for Bryntum team and Hotel Park in red in the view "resourceView" which is displayed in the view "week" .

Thanks.


Post by Animal »

I cannot understand the requirement.

A ResourceTimeRange has a resourceId because it is a ResourceTimeRange. It is a time range for a resource.

If you just want a TimeRange, use a TimeRange.


Post by anthony.dasre »

If I use "timerange", it is only displayed in the view week as follow:

Capture d'écran 2024-02-29 135819.png
Capture d'écran 2024-02-29 135819.png (132.86 KiB) Viewed 129 times

However, I want displayed in the resourceView as below:

Attachments
1Capture .png
1Capture .png (99.39 KiB) Viewed 129 times

Post by Animal »

That would be just a TimeRange. Because normal Calendar views are shared between resources. Events for all resources share the timeline space.


Post by Animal »

OK, I just noticed the "Hotel Park" at the top of that screenshot, so it is a ResourceTimeRange.

So that would be a ResourceTimeRange for Hotel Park. Use Hotel Park's id as the resourceId.


Post Reply