Skip to content

How to make the sidebar in a dashboard collapsed by default? #11144

Answered by cderv
pensivedog asked this question in Q&A
Discussion options

You must be logged in to vote

We currently don't allow to customize the default state. It will be expanded by default

function sidebarToggle(id: string, doc: Document) {
const html = `
<button class="collapse-toggle" type="button" title="Toggle sidebar" aria-expanded="true" aria-controls="${id}">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="bi bi-chevron-left collapse-icon" style="fill:currentColor;" aria-hidden="true" role="img">
<path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z">…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pensivedog
Comment options

@pensivedog
Comment options

Answer selected by pensivedog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants