Hello guys,
i am looking for the JS-function for firing ab collapse event for the ressource tree.
reason: i don't want the user to open the tree manually, i want to to do it with JavaScript.
Thanks Mike
Since build 2259, you can use DayPilot.Row.collapse() and DayPilot.Row.expand():
https://api.daypilot.org/daypilot-row-collapse/ https://api.daypilot.org/daypilot-row-expand/
In previous builds, you can use DayPilot.Row.toggle():
https://api.daypilot.org/daypilot-row-toggle/
Another option is to set dp.resources[].expanded as needed and call update(). The "expanded" property can be set during init as well:
https://api.daypilot.org/daypilot-scheduler-resources/
Thx