dash-admin-components icon indicating copy to clipboard operation
dash-admin-components copied to clipboard

How can I make the sidebar in the icon mode when server start?

Open java2coffee opened this issue 5 years ago • 1 comments

When start the dash server, the sidebar is in the icon with text mode. I have to click the list button and change it to icon mode everytime.

Is there an attribute to let the sidebar in icon mode after server start?

Thx a lot.

Jack

java2coffee avatar Dec 17 '19 09:12 java2coffee

Hi @java2coffee ,

It is a bit late to answer this, but this can be accomplished by adding a .js file on assets folder:


var body = document.body;

body.classList.add("sidebar-collapse");

kaleming avatar Feb 22 '21 16:02 kaleming