Vertical menu configuration
How to change width?
-
In order to change the width of left side navigation
bar,
open a file
src/assets/scss/_variables.scss
and change the value of variable$sidebar-width
. The default value is set to250px
.
Make sure after that step run
npm run build
in
command
prompt.
How to use pre-built layouts?
Each of the layout options is provided below with
steps you would need to perform in :
views/partials/body.ejs
file.
Dark Sidebar
Remove data attributedata-sidebar="dark"
body element to
have dark sidebar.
Compact Sidebar
Keep your body element with data attributedata-sidebar-size="small"
E.g.
<body data-sidebar-size="small">
to have small sidebar.
Icon Sidebar
Keep your body element with classvertical-collpsed"
E.g.
<body class="vertical-collpsed">
to have icon sidebar.
Boxed Layout
Keep your body element with classvertical-collpsed
and data attribute
data-layout-size="boxed" data-keep-enlarged="true"
E.g.
<body class="vertical-collpsed" data-layout-size="boxed" data-keep-enlarged="true">
to have boxed layout with icon view sidebar.
Colored Sidebar
Keep your body element with data attributedata-sidebar="colored"
E.g.
<body data-sidebar="colored">
to
have colored sidebar.
Preloader
In order to add pre-loader in your page, include following html afterbody
element.
<div id="preloader">
<div id="status">
<div class="spinner">
<i class="uil-shutter-alt spin-icon"></i>
</div>
</div>
</div>