Our pure JavaScript Scheduler component


Post by martyn.compton »

Hi folks,

Having great fun working with Scheduler, an amazing component!

I'm playing around with using group summaries and want to give a "% utilisation of staff" figure which requires me knowing how many of the resources have a resourceTimeRange allocated in the group I'm looking at... How can I go about doing this? I was having trouble figuring out how many resources are in the group let alone how many have a resourceTimeRange in the time slot I'm calculating...

Martyn

Post by mats »

If you use the 'summaries' listed in docs you can render any value you want? Just iterate over your resourceTimeRanges for the start/end date?

https://bryntum.com/docs/scheduler/#Scheduler/feature/GroupSummary#config-summaries

Post by martyn.compton »

Was thinking that might be the case thinking about it over lunch, so just iterate over time periods between startDate and endDate checking the values in resourceTimeRanges, thanks for the brain nudge ;)

M

Post Reply