Our powerful JS Calendar component


Post by braincept »

Hi there,

Is it possible to display availabilities and absences (time ranges) per resource in the calendar. We would like to show the working hours per resources in the background. This would be a good improvement for the ResourceView mode. (https://bryntum.com/examples/calendar/resourceview/)

The display could be similar to the feature in the bryntum scheduler (https://bryntum.com/examples/scheduler/timeranges/)

Best regards
Marvin - braincept


Post by mats »

Great idea! We do not support this yet, but I opened this FR to discuss internally: https://github.com/bryntum/support/issues/4062


Post by braincept »

Has there been any progress on this ticket / feature request? Is there anything we can do from our side so move this further, we have a lot of pressure on this because our users want to see their availabilities/absences directly in the calendar. (not only the appointments)

all the best
Marvin - braincept


Post by alex.l »

This feature didn't get a milestone yet, so it won't be implemented in nearest releases.
You can sponsor the feature to get it fast, please contact our sales for details if you are interested https://www.bryntum.com/services/

All the best,
Alex


Post by Animal »

We'd have to nail down some requirements. Please post whether you agree with this analysis.

I think that would be actual days blocked out most of the time. With a background colour which depends on a resource.

So. For a MonthView (And CalendarRow which is also a series of day cells) , whole cells might get a CSS class, but what if multiple ones overlapped? Multiple CSS classes won't work. So cells would have to get extra full-sized elements for each ResourceTimeRange which intersects that cell. OK. They would then overly one another. Their background colours (which would have a transparency channel obv) would add up. That's possible.

Then what if the time range was not midnight to midnight? I suggest that if it intersects, the cell gets a regular full-sized element. MonthViews and CalendarRows are not time-granular.

DayViews (WeekView isa DayView). These are time-granular, so these would show elements which could take into account accurate start time and end time.

YearView has no way of doing this. It's already a coloured heat map of event density.

ListView. Not affected, each row is an event.

AgendaView. Similar to MonthView. If a range intersects a day, then that cell gets a full sized element added which carries the rendition.

So this would be a parallel rendering pathway with event rendering. Also the collection of these would be a parallel path to event collection. The DayCell blocks collected, in addition to containing the day's intersecting events would also contain the intersecting ResourceTimeRanges.

To enable collection of intersecting ranges by date, ResourceTimeRanges store would also have to mix in GetEventsMixin and for that to work, DayIndexMixin. In that way, collection of ResourceTimeRanges would work in the same way.

So maybe it would like this. I mocked it up using the debugger:

:

Screenshot 2022-03-24 at 07.33.34.png
Screenshot 2022-03-24 at 07.33.34.png (159.15 KiB) Viewed 1208 times
Screenshot 2022-03-24 at 07.34.04.png
Screenshot 2022-03-24 at 07.34.04.png (174.94 KiB) Viewed 1208 times
Screenshot 2022-03-24 at 07.34.18.png
Screenshot 2022-03-24 at 07.34.18.png (210.69 KiB) Viewed 1208 times

Post by braincept »

Hey there
We wanted to check if there has been any progress on this task. Or is anything planned for the 2023?

All the best from Switzerland
Marvin


Post by marcio »

Hey Marvin,

For now no updates on this feature request, but I added a note to the ticket, if you want to speed up, you can contact our services and sponsor this feature development (and give it a priority).

Best regards,
Márcio


Post by braincept »

Hey Marcio
Thanks for your feedback. Can you write us an offer for part-time sponsoring of the feature?

Best regards
Marvin


Post by mats »

This feature is now implemented and is part of 5.3 which is due in a few weeks!


Post by braincept »

Sounds awesome @Mats.

Best regards
Marvin


Post Reply