DOCUMENTATION

Sidebar Appearance

  1. sidebar_color
    - For sidebar color there are 3 options given below: Values are in string.
    
    "sidebar_color": "sidebar-white",
    choices: 'sidebar-white', 'sidebar-dark', 'sidebar-color'
                  
  2. sidebar_type
    - For sidebar type there are 3 options given below: Values are in array.
    
    "sidebar_type": "sidebar-mini",
    choices: 'sidebar-hover', 'sidebar-mini', 'sidebar-boxed'
                  
  3. sidebar_menu_style
    - For sidebar menu-style there are 5 options given below: Values are in string.
    
    "sidebar_menu_style": "left-bordered",
    choices: 'navs-rounded', 'navs-rounded-all', 'navs-pills', 'navs-pill-all', 'left-bordered'
                  
There are two ways you can change the setting of your sidebar:

With the use of live customizer


You can work on sidebar using Live Customizer in following way:
  1. You can change the sidebar with the property name and its value here by declaring property name and its values in gulp.config.json file.
    - This is the example of gulp.config.json file.
    
     "options": {
        "saveLocal": "sessionStorage",
        "storeKey": "huisetting",
        "setting": {
          "sidebar_color": "sidebar-white",
          "sidebar_type": [],
          "sidebar_menu_style": "left-bordered"
      }
    },
                      
Manual
  1. By adding some classes in sidebar parent section. Example is given bellow.
  2. Sidebar Menu Color
    If you wish to change the sidebar Menu color, you can follow the below action.

    For example you have to set sidebar color as dark then you will have to add sidebar-dark class at data-toggle="main-sidebar" of the sidebar.

    - For sidebar color as dark

    
    <aside class=" .... sidebar-dark" data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
      ....
    </aside>
                          

    - For sidebar color as color

    
    <aside class=" .... sidebar-color" data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
      ....
    </aside>
                          

    - For default or white sidebar

    
    <aside class=" ....default " data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
      ....
    </aside>
                      
    Sidebar Style

    If you wish to change the sidebar style, you can follow the below action.

    For example you have to set sidebar style as mini then you will have to add sidebar-mini class at data-toggle="main-sidebar" of the sidebar

    - For sidebar style as mini

    
    <aside class=" ....sidebar-mini " data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
      ....
    </aside>
                          

    - For sidebar style as hover

    
    <aside class=" ....sidebar-hover " data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
      ....
    </aside>
                          

    - For sidebar style as boxed

    
    <aside class=" ....sidebar-boxed " data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
      ....
    </aside>
                          

Sidebar Active Menu Style

If you wish to change the sidebar active menu style, you can follow the below action.

For example you have to set sidebar active as rounded then you will have to add navs-rounded class at data-toggle="main-sidebar" of the sidebar.

- For sidebar active as rounded one side


<aside class=" ....navs-rounded " data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
  ....
</aside>
              

- For sidebar active as rounded all


<aside class=" ....navs-rounded-all " data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
  ....
</aside>
              

- For sidebar active as one side pill


<aside class=" ....navs-pill " data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
  ....
</aside>
              

- For sidebar active as pill all


<aside class=" ....navs-pill-all " data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
  ....
</aside>
              

- For sidebar active as bordered at left-side


<aside class=" ....left-bordered " data-toggle="main-sidebar" x-data="sidebar" x-bind:class="[setting.sidebar_menu_style, setting.sidebar_color, setting.sidebar_type.join(' ')]">
  ....
</aside>
              

Updated on February 28, 2022
Was this page helpful?