Our pure JavaScript Scheduler component


Post 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)
      }
   }
}

Post by mats »

Can you please show what result you are looking for? And what it is you see currently?


Post by Animal »


Post 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/


Post 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
Screenshot 2023-03-23 at 07.17.30.png (208.57 KiB) Viewed 173 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


Post 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?


Post 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.


Post by jnarowski »

Ok that's what I wanted to confirm. It's clear for me now. Thanks!


Post by Animal »

It should be the same. Here's a ticket: https://github.com/bryntum/support/issues/6449


Post Reply