How to know resource model is visible or not?
I found a resource with code
scheduler.resourceStore.getById(resourceId)
It returns a ResourceModel, but I don't know it is visible or not?
For example here https://bryntum.com/products/scheduler/examples/filtering/
When I input text 'a' to filter, some 'staff' is visible, it is right.
To get a resource, I use the code:
scheduler.resourceStore.getById('c')
It returns a hidden ResouceModel of "Henrik" staff.
How to know this resource is visible?
Pls, see my below image.
Hi,
Sure, you could use this method https://bryntum.com/products/scheduler/docs/api/Scheduler/data/ResourceStore#function-isAvailable to achieve this