Can I expand/collapse all resource items just like tasks?


#1

Can I expand/collapse all resource items just like tasks?

I saw we could expand/collapse all task items as below, but can we expand/collapse all resource items?


#2

Hello Kevin,
There is no public API method to do that. But you can use resourcesStore.pull to get all resources. Then you can change $open property of each resource object and render the changes. Here is an example of how it might be implemented:
http://snippet.dhtmlx.com/9c6bb0da0


#3

It works,Thanks for your help


#4

But I can not find the API doc about the treeDataStore.pull method, could you put the specific url here?


#5

Hello Kevin,
treeDataStore.pull is not a method. It is an object. There is no such an article that explains how it works. We’ll add that article in the future.


#6

Thanks Ramil, I looked into the source code and found the answer, thanks for you explaining, but What I care about is, if there is no official doc for this, or public method for this, I’m afraid of future deprecation on this “illegal” using.


#7

Hello Kevin,
Thank you for the clarification.
I cannot promise you that it will stay the same forever, but I will notify you when the article is written or declined because of new functionality.


#8

I understand that, Thanks Ramil.