Page 2 of 2

Re: Collapse and expand Tree View Widget from code

Posted: Thu Sep 26, 2019 12:55 pm
by bwmilby
That is not possible as a single command in the current implementation. You can get the fold state array and then create one that will have everything expanded. Since the widget constructs the fold state array in a lazy manner (only adds keys as they are visited and unfolded) and the entire tree is not parsed initially depending on size, adding it to the widget will take a bit of code. Probably a good Hacktoberfest addition.