Vertical menu configuration
How to change width?
- Node js
-
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
.
How to use pre-built layouts?
Each of the layout options is provided below with steps you would need to perform in:
Light Sidebar
Remove data attributedata-sidebar="light"
body element to
have light sidebar.
Compact Sidebar
Keep your body element with data attributedata-sidebar-size="md"
E.g.
<body data-sidebar-size="md">
to have small sidebar.
Icon Sidebar
Keep your body element withdata-sidebar-size="sm"
E.g.
<body data-sidebar-size="sm">
to have icon sidebar.
Boxed Layout
Keep your body element with data attributedata-sidebar-size="lg" data-layout-size="boxed"
and class="right-bar-enabled"
, and
views/layout/layout.ejs remove <%- include ('../partials/menu') %>
or add <%- include ('../partials/topbar') %><%- include ('../partials/sidebar') %>
to have boxed layout with icon view sidebar.