Documentation

Navbar Appearance

File name:- /src/app/store/setting/state.ts
This are in string.
  1. header_navbar
    - for header navbar there are 4 options given below:
    "header_navbar": "default",
    choices: 'default', 'navs-sticky', 'nav-glass', 'navs-transparent'

There are two ways you can change the setting of your navbar:

With the use of live customizer

You can work on navbar using Live Customizer in three different ways:
  1. You can change the navbar 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":{
            "app_name": { "value" : "Hope UI" },
            "header_navbar": {"value" : "navs-sticky"},
        }
    },
  2. Go to the live customizer and click on the 'Copy Config' button available at the top-right to copy the json file from the setting panel. Paste the copied code in the IQSetting(setting_options) at the setting-init.js file.
    - Before
    let setting_options = document.querySelector('meta[name="setting_options"]')
    setting_options = JSON.parse(setting_options.getAttribute('content'))
    const setting = window.IQSetting = new IQSetting(setting_options);
    - After
    let setting_options = document.querySelector('meta[name="setting_options"]')
    setting_options = JSON.parse(setting_options.getAttribute('content'))
    const setting = window.IQSetting = new IQSetting({
        "saveLocal": "sessionStorage",
        "storeKey": "huisetting",
        "setting": {
            "app_name": {"value": "Hope UI"},
            "header_navbar": {"value" : "navs-sticky"},
        }
    });
  3. You can change the navbar by adding property name and its values in the <meta> tag given in <head> section.
    - This is the example of <meta> data
    <head>
        <meta name="setting_options"
        content="{
            "saveLocal":"sessionStorage",
            "storeKey":"huisetting",
            "setting":{
                "app_name":{"value":"Hope UI"},
                "header_navbar": {"value" : "navs-sticky"},
            }
        }>
    </head>
Manual

You can change the navbar layouts with a single action.
  1. By adding some classes in navbar parent section. Example is given below.
  2. Navbar Style

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

    For example you have to set navbar style as sticky then you will have to add navs-sticky class at nav tag.

    - For navbar style as sticky
    <nav class="nav navbar ..... navs-sticky">
        .......
    </nav>
    - For navbar style as glass
    <nav class="nav navbar ..... navs-glass">
        .......
    </nav>
    - For navbar style as Transparent
    <nav class="nav navbar ..... navs-transparent">
        .......
    </nav>
    - For navbar style as default
    <nav class="nav navbar ..... navs-default">
        .......
    </nav>