Page 1 of 1

[REACT] Scheduler: How can I change the styling for collapsed resources?

Posted: Fri Aug 12, 2022 4:21 pm
by anacoda

I'd like to remove some information displayed on a resource when a user collapses, to make that row thinner.
How can I check the resources' collapsed state from the column renderer? The collapse functionality is being provided by a column of type "resourceCollapse"

Thank you,
Ana


Re: [REACT] Scheduler: How can I change the styling for collapsed resources?

Posted: Fri Aug 12, 2022 9:30 pm
by mats

Docs:

/**
 * A column toggling the resource {@link Scheduler.model.ResourceModel#field-eventLayout} between `none` and `stack`.
 *

So simple read the 'eventLayout' field of the resource in your column renderer.