Expand/collapse URL parameter

Hi there

@mstenta Is it possible to affect the behaviour of the location tree from the URL?
I think it makes more sens to have it expanded. (Actually a long term solution could be to remember the state from time to time)

3 Likes

Expanding by default sounds good to me. Remembering the state would be even better, but of course more complicated.

If you (or anyone) want to experiment and make a pull request, here is the relevant code:

It uses the Inspire Tree library: GitHub - helion3/inspire-tree: Inspired Javascript Tree

Sounds like initial tree state can be configured in different ways: GitHub - helion3/inspire-tree: Inspired Javascript Tree

3 Likes

Expanding by default sounds good to me.

I have a feeling this wouldn’t work well for Rothamsted, they tend to have lots of locations :slight_smile:

But I do like this idea… lets make it configurable!!! :smiley:

2 Likes

Configurable and a simple, focused searchbar.
:innocent:

2 Likes