Hi,
I've got some sidebar groups which are all collapsible however when you land on the page i'd like the first group to be expanded by default. Is this possible?
It's possible using Bootstrap 4 or JavaScript. Bootstrap 4 has a class that allows you to specify what container is expanded/collapsed by default depending on the viewport size.
How would you do either of these approaches? I'm using an out of the box VuePress setup
You can set collapsable: true for each sidebar group.
@ulivz You have not understood my question. I know that i can do that to make them collapsable. However, the default behaviour is then to have them collapsed when you land on the page whereas i would like one of them to be expanded by default. How do I achieve that?
You can set
collapsable: truefor each sidebar group.
@ulivz Can we reopen this as you mistakenly did not understand the question and this would be very helpful to add.
Would also like to have
Whether a collapsible group is expanded or not seems random. I got about 20 groups with the same setting, some are expanded and some are collapsed.
It would be great if we can decide it
Would it be possible to re-open the issue and have more discussion around this?
Most helpful comment
@ulivz Can we reopen this as you mistakenly did not understand the question and this would be very helpful to add.