Our powerful JS Calendar component


Post by ehc-between »

Hi,

how can i set 1 selected user in the left side menu resource filter when i change the calendar mode ?

i have tried to filter events but the weekResource view still shows all selected resources

Attachments
Screenshot 2023-12-07 at 13.52.32.png
Screenshot 2023-12-07 at 13.52.32.png (166.64 KiB) Viewed 439 times

Post by marcio »

Hey,

You can use the following snippet (you can test it live https://bryntum.com/products/calendar/examples/basic/)

calendar.widgetMap.resourceFilter.deselectAll()
calendar.widgetMap.resourceFilter.select('bryntum')

https://bryntum.com/products/calendar/docs/api/Scheduler/widget/ResourceFilter#function-deselectAll
https://bryntum.com/products/calendar/docs/api/Scheduler/widget/ResourceFilter#function-select

Best regards,
Márcio


Post by ehc-between »

Thanks, works great !


Post Reply