Documentation
Navbar Appearance
File name:- /src/app/store/setting/state.ts
This are in string.-
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:
-
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 ofgulp.config.json
file."options":{ "saveLocal": "sessionStorage", "storeKey": "huisetting", "setting":{ "app_name": { "value" : "Hope UI" }, "header_navbar": {"value" : "navs-sticky"}, } },
-
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 theIQSetting(setting_options)
at thesetting-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"}, } });
-
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.
-
By adding some
classes
in navbar parent section. Example is given below.
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>