dawidkopczyk / dash-admin-components

AdminLTE3 Dash components :zap:
http://dash-admin-components.opensource.quantee.ai/
Other
85 stars 21 forks source link

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

Open java2coffee opened 4 years ago

java2coffee commented 4 years ago

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

kaleming commented 3 years ago

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");