Learn more from guides & API docs
Catch up with the latest on the blog
Try our many live demos
View webinars
Find answers or ask questions
Docs & demos for Angular
Docs & demos for React
Docs & demos for Vue
Our pure JavaScript Scheduler component
Post by jnarowski » Wed Mar 22, 2023 5:39 pm
Guessing I am doing this wrong. showResourceAvatars works in calendar month mode, but not in calendar scheduler mode.
showResourceAvatars
{ modes: { day: { type: 'scheduler', displayName: 'Day', showResourceAvatars: true, // doesn't show avatars in calendar -> day (schedule view) } } }
Post by mats » Wed Mar 22, 2023 5:55 pm
Can you please show what result you are looking for? And what it is you see currently?
Post by Animal » Wed Mar 22, 2023 6:00 pm
This is an instance of Scheduler
Scheduler
See the Scheduler docs: https://www.bryntum.com/products/scheduler/docs/api/Scheduler/view/ResourceHeader#config-showAvatars
Post by jnarowski » Wed Mar 22, 2023 9:31 pm
I was hoping to have the avatars show up in the event itself, just like it does in the calendar view. Seems like the resource view might not support this and we should use eventRenderer like this example (to get avatars in the event)
https://bryntum.com/products/schedulerpro/examples/non-working-time/
Post by Animal » Thu Mar 23, 2023 8:19 am
Open up the code editor in that example. See how you have to tell it where the images come from:
Documented in the Scheduler: https://www.bryntum.com/products/scheduler/docs/api/Scheduler/view/mixin/SchedulerEventRendering#config-resourceImagePath
When the Scheduler is embedded within a Calendar, the Calendar may be configured with this, and it passes it down to child views: https://bryntum.com/products/calendar/docs/api/Calendar/view/Calendar#config-resourceImagePath
Calendar
Post by jnarowski » Thu Mar 23, 2023 3:51 pm
I am using imageUrl instead of image + resourceImagePath. This works in the calendar but the avatars are not displaying in the scheduler view.
My understanding was if I am using imageUrl, I don't need resourceImagePath. Is this correct?
Is there further configuration on the scheduler view I need to do to get avatars to show up with imageUrl?
Post by Animal » Thu Mar 23, 2023 4:11 pm
Looks like you have to use an eventRenderer in the Scheduler to get images in the event bar. Look at the code in https://bryntum.com/products/schedulerpro/examples/non-working-time/
Not quite as simple as the showResourceAvatars config on calendar modes.
Post by jnarowski » Thu Mar 23, 2023 4:14 pm
Ok that's what I wanted to confirm. It's clear for me now. Thanks!
Post by Animal » Thu Mar 23, 2023 4:18 pm
It should be the same. Here's a ticket: https://github.com/bryntum/support/issues/6449