Page 1 of 1
[VUE 3] showResourceAvatars not working (Scheduler within Calendar)
Posted: Wed Mar 22, 2023 5:39 pm
by jnarowski
Guessing I am doing this wrong. showResourceAvatars
works in calendar month mode, but not in calendar scheduler mode.
{
modes: {
day: {
type: 'scheduler',
displayName: 'Day',
showResourceAvatars: true, // doesn't show avatars in calendar -> day (schedule view)
}
}
}
Re: [VUE 3] showResourceAvatars not working (Scheduler within Calendar)
Posted: Wed Mar 22, 2023 5:55 pm
by mats
Can you please show what result you are looking for? And what it is you see currently?
Re: [VUE 3] showResourceAvatars not working (Scheduler within Calendar)
Posted: Wed Mar 22, 2023 6:00 pm
by Animal
Re: [VUE 3] showResourceAvatars not working (Scheduler within Calendar)
Posted: Wed Mar 22, 2023 9:31 pm
by jnarowski
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/
Re: [VUE 3] showResourceAvatars not working (Scheduler within Calendar)
Posted: Thu Mar 23, 2023 8:19 am
by Animal
Open up the code editor in that example. See how you have to tell it where the images come from:
Screenshot 2023-03-23 at 07.17.30.png (208.57 KiB) Viewed 282 times
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
Re: [VUE 3] showResourceAvatars not working (Scheduler within Calendar)
Posted: Thu Mar 23, 2023 3:51 pm
by jnarowski
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?
Re: [VUE 3] showResourceAvatars not working (Scheduler within Calendar)
Posted: Thu Mar 23, 2023 4:11 pm
by Animal
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.
Re: [VUE 3] showResourceAvatars not working (Scheduler within Calendar)
Posted: Thu Mar 23, 2023 4:14 pm
by jnarowski
Ok that's what I wanted to confirm. It's clear for me now. Thanks!
Re: [VUE 3] showResourceAvatars not working (Scheduler within Calendar)
Posted: Thu Mar 23, 2023 4:18 pm
by Animal