Vertical
How to use pre-built layouts?
You can change the template as per your requirements. To
configure it, we will use reducer.js.
you can find the file src/slices/layouts/reducer.js
in JS and
src/slices/layouts/reducer.ts
file in TS folder. (For
Redux-Toolkit with Thunk version)
To switch the layout type in Velzon, you must specify the desired layout style as
"Vertical." This can be achieved by modifying the layoutType value within the
src/Components/constants/layout.js
file for JavaScript or the
src/Components/constants/layout.ts
file for TypeScript. Specifically,
for JavaScript, update the line to read layoutType :
layoutTypes.VERTICAL, and for TypeScript, make the adjustment to
layoutType : LAYOUT_TYPES.VERTICAL in the respective
file.
Theme Options
Each of the theme configuration options is provided Below, you can change their
values as
per you need in INIT_STATE variable located in
src/slices/layouts/reducer.js
file in JS and
src/slices/layouts/reducer.ts
file in TS.
(For Redux-Toolkit with Thunk version)
src/constants/layout.js
file in JS and
code>src/constants/layout.ts in TS. (Please do not change the
constant's value in src/Components/constants/layout.js
file in JS and
src/Components/constants/layout.ts
file in TS.)
Layout Width
layoutWidthTypes.FLUID
layoutWidthTypes.BOXED
Layout Position
layoutPositionTypes.FIXED
layoutPositionTypes.SCROLLABLE
Topbar Colors
topbarThemeTypes.LIGHT
topbarThemeTypes.DARK
Sidebar Sizes
leftsidbarSizeTypes.DEFAULT
leftsidbarSizeTypes.COMPACT
leftsidbarSizeTypes.SMALLICON
leftsidbarSizeTypes.SMALLHOVER
Sidebar View
leftSidebarViewTypes.DEFAULT
leftSidebarViewTypes.DETACHED
Sidebar Colors
leftSidebarTypes.LIGHT
leftSidebarTypes.DARK