I would like to collapse the left panel with Resources/Elements tree in Manager.
I build a custom manager page which needs a lot of space for displaying datagrids, and it would be nice to collapse the panel when opening this CMP, instead of telling user to click on the collapse button to extend the viewport.
I have tried to inspect the code and find the JS function that is triggered onClick, but since the code is obfuscated/minified, there is no easy way to call it - hacking the JS call would be only temporary solution, since it might break in future when MODX changes/recompiles JS files and the obfuscated JS functions change their name.
Is there some API for that, or any official way how to hide the panel? E.g. ExtJS call etc. Of course, I can disable the panel using Access Permissions/Policies completely, but that is not a solution