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 to 250px.

How to use pre-built layouts?

Each of the layout options is provided below with steps you would need to perform in src/app/layouts/vertical/vertical.component.ts in ngAfterViewInit method:

image
Light Sidebar
Set data attribute document.body.setAttribute("data-sidebar", "light"); to have light sidebar.
image
Dark Sidebar
Set data attribute document.body.setAttribute("data-sidebar", "dark"); to have dark sidebar.
image
Compact Sidebar
Set data attribute document.body.setAttribute('data-sidebar-size', 'small'); document.body.setAttribute('data-sidebar', 'dark'); and remove other attributes.
image
Icon Sidebar
Add class to the body element like document.body.classList.add('sidebar-enable'); document.body.classList.add('vertical-collpsed'); and remove other attributes.
image
Boxed Layout
Add class to the body element like document.body.setAttribute('data-keep-enlarged', 'true'); document.body.setAttribute('data-layout-size', 'boxed'); document.body.setAttribute('data-sidebar', 'dark');.
image
Brand Sidebar
Set data attribute document.body.setAttribute("data-sidebar", "brand"); and remove other attributes.
image
Scrollable Layout
Set data attribute document.body.setAttribute("data-layout-scrollable", "brand"); have Scrollable Layout.
© Themesbrand.
Crafted with by Themesbrand