Vertical menu configuration
You can change or customize the left side navigation very easily.
How to add new menu items/change menu items?
- In order to add, change or remove menu items from the
left side navigation, simply edit in file
src/partials/sidebar.html
. The change would reflect in all the html files automatically. We are usinggulp-file-include
which would actually take care of including thesidebar.html
file content in the all html pages.
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 to240px
.
How to use pre-built layouts?
Each of the layout options is provided below with steps you would need to perform in:
Dark Sidebar
Add data attributedata-sidebar="dark"
body element to
have light sidebar. Add data attribute
data-sidebar="dark"
body element to have
dark topbar.
Sidebar With User
Keep your body element with data attributedata-sidebar-user="true"
E.g.
<body data-sidebar-user="true">
to
have sidebar with user.
Page Title 2
Keep your body element with data attributedata-page-title="white"
E.g.
<body data-page-title="white">
to
have sidebar with user.
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.