How to use pre-built layouts?
You have the flexibility to modify the template according to your specific needs. To customize
it, you can make use of the "reducer.ts" file. The file is located within the
src/slices/layouts/reducer.ts directory.
export const initialState: LayoutState = {
layoutTypes: LAYOUT_TYPES.VERTICAL,
layoutModeTypes: LAYOUT_MODE_TYPES.LIGHT,
layoutWidthTypes: LAYOUT_WIDTH_TYPES.FLUID,
topbarThemeTypes: TOPBAR_THEME_TYPES.LIGHT,
leftSidebarTypes: LEFT_SIDEBAR_TYPES.DEFAULT,
leftSideBarThemeTypes: LEFT_SIDEBAR_THEME_TYPES.DARK,
leftSidebarImageTypes: LEFTBAR_THEME_IMAGES_TYPES.NONE
};
Layout Type:
There are 2 types of Layout : 1. Horizontal Layout 2. Vertical Layout. please visit Layouts for more details. you would change the layoutType variable's value if you want to change layout Type.
Vertical Layout
layoutType: LAYOUT_TYPES.VERTICAL
Horizontal Layout
layoutType: LAYOUT_TYPES.HORIZONTALLayout Mode Types
There are 2 types of Layout Mode : 1. Light Layout 2. Dark Layout. you would change the layoutModeTypes variable's value if you want to change layout Mode.
Light Layout
layoutModeTypes: LAYOUT_MODE_TYPES.LIGHT
Dark Layout
layoutModeTypes: LAYOUT_MODE_TYPES.DARKLayout Width
There are 2 types of Layout Width : 1. Fluid Layout Width 2. Boxed Width. you would change the layoutWidth variable's value if you want to change layout width.
Fluid Layout
layoutWidthTypes: LAYOUT_WIDTH_TYPES.FLUID
Boxed Layout
layoutWidthTypes: LAYOUT_WIDTH_TYPES.BOXEDTopbar Theme
There are 3 types of Topbar Theme : 1. Light Topbar 2. Dark Topbar 3. Colored Topbar. you would change the topbarThemeTypes variable's value if you want to change layout topbar theme color.
Light Topbar
topbarThemeTypes: TOPBAR_THEME_TYPES.LIGHT
Dark Topbar
topbarThemeTypes: TOPBAR_THEME_TYPES.DARK
Colored Topbar
(it's available for horizontal layout only)
topbarThemeTypes: TOPBAR_THEME_TYPES.COLORED