Is there an listener or a way to watch & run a method on open and close of tree-view folder.
On opening folder
/styles/ call a method that then can do something such as get the list of files inside.
I want to use this to keep styles on a certain file because currently when you collapse a folder the elements are removed from the DOM the styles never get re-added when expanded again.
I’m open to any other ways to do this, other than settimeout…