How to make the sidebar in a dashboard collapsed by default? #11144
-
DescriptionI have a quarto website that contains several dashboards, on some of which I'd like to have sidebars. I've searched and can't find a working way to have the sidebars collapsed by default. I've tried the following, which does not work:
Is there any way to do something like the above or, even better, something like the below?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
We currently don't allow to customize the default state. It will be expanded by default quarto-cli/src/format/dashboard/format-dashboard-sidebar.ts Lines 129 to 143 in a2a22e5 This means this is a feature request idea. In the meantime you may be able to use JS on document loaded to change the default state of your sidebar I guess. But I don't know specifically how... 🤷♂️ Sorry. |
Beta Was this translation helpful? Give feedback.
We currently don't allow to customize the default state. It will be expanded by default
quarto-cli/src/format/dashboard/format-dashboard-sidebar.ts
Lines 129 to 143 in a2a22e5