search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Ressource Tree Collapse JavaScript

Asked by Mike
8 years ago.

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

Answer posted by Dan Letecky [DayPilot]
8 years ago.

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/

Comment posted by Mike
8 years ago.

Thx

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.