Our powerful JS Calendar component
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.
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.
If I use "timerange", it is only displayed in the view week as follow:
- 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 (99.39 KiB) Viewed 129 times
That would be just a TimeRange. Because normal Calendar views are shared between resources. Events for all resources share the timeline space.
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.