Vuepress: Is it possible to specify that a sidebar group that is collapsible is expanded by default?

Created on 6 Mar 2019  路  8Comments  路  Source: vuejs/vuepress

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?

Most helpful comment

You can set collapsable: true for each sidebar group.

@ulivz Can we reopen this as you mistakenly did not understand the question and this would be very helpful to add.

All 8 comments

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: true for 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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cfjedimaster picture cfjedimaster  路  3Comments

genedronek picture genedronek  路  3Comments

FadySamirSadek picture FadySamirSadek  路  3Comments

gaomd picture gaomd  路  3Comments

herrbischoff picture herrbischoff  路  3Comments