Description
Chameleon Admin provides flexible horizontal navigation component, which allows you to modify navigation colors, appearance of different types of content, components placement etc. This page contain all navigation styling options.
This section contains HTML Markup to demonstrate horizontal navigation styling options. This markup define where to add css classes to customize navigation as per your requirements.
- Line no 12 (Navigation position options): Contain the
.navbar-fixed
class to set navigation position fixed, here you can use any one class from.navbar-fixed
&.navbar-static
. - Line no 12 (Navigation color options): Contain the
.navbar-dark
class to set navigation color dark, here you can use any one class from.navbar-light
&.navbar-dark
. - Line no 12: The rest of the navigation classes like
.navbar-icon-right
,.navbar-border
&.navbar-shadow
are optional and cab be used on your custom requirements.
Markup
<!DOCTYPE html>
<html lang="en">
<head></head>
<body data-menu="vertical-menu" class="vertical-layout vertical-menu 2-column menu-expanded">
<!-- fixed-top-->
<nav role="navigation" class="header-navbar navbar navbar-with-menu fixed-top navbar-dark navbar-shadow navbar-border">
...
</nav>
<!-- BEGIN Horizontal Navigation-->
<div role="navigation" data-menu="menu-wrapper" class="header-navbar navbar navbar-horizontal navbar-light navbar-border navbar-without-dd-arrow"">
...
</div>
<!-- END Horizontal Navigation-->
<!-- BEGIN Content-->
<div class="content modern-content container-fluid">
<div class="content-wrapper">
<!-- content header-->
<div class="content-header row">
...
</div>
<!-- content header-->
<!-- content body-->
<div class="content-body">
...
</div>
<!-- content body-->
</div>
</div>
<!-- END Content-->
<!-- START FOOTER DARK-->
<footer class="footer footer-dark">
...
</footer>
<!-- START FOOTER DARK-->
</body>
</html>
Chameleon Admin use PUG as template engine to generate pages and whole template quickly using node js, for getting start with PUG usage & template generating process please refer template documentation.
PUG Variables
This table contains required PUG variables to generate horizontal navigation with styling options.
Block | Variable | Datatype | Value | Description |
---|---|---|---|---|
horizontalMenuConfig |
menuType |
string |
'navbar-fixed' |
To set the horizontal navigation position fixed, use navbarCustom variable value as 'navbar-fixed' in horizontalMenuConfig block. |
horizontalMenuConfig |
menuType |
string |
'navbar-static' |
To set the horizontal navigation position static, use navbarCustom variable value as 'navbar-static' in horizontalMenuConfig block. |
horizontalMenuConfig |
menuColor |
string |
'navbar-light' |
To set the horizontal navigation color light, use navbarCustom variable value as 'navbar-light' in horizontalMenuConfig block. |
horizontalMenuConfig |
menuColor |
string |
'navbar-dark' |
To set the horizontal navigation color dark, use navbarCustom variable value as 'navbar-dark' in horizontalMenuConfig block. |
horizontalMenuConfig |
menuFlipped |
boolean |
true/false |
To set the horizontal navigation flipped, use menuFlipped variable value as true/false in horizontalMenuConfig block. |
horizontalMenuConfig |
menuIconRight |
boolean |
true/false |
To create horizontal navigation with right side icons, use menuIconRight variable value as true/false in horizontalMenuConfig block. |
horizontalMenuConfig |
menuWithoutDDArrow |
boolean |
true/false |
To remove the horizontal navigation dropdown arrow, use navbarCustom variable value as true/false in horizontalMenuConfig block. |
horizontalMenuConfig |
menuBorder |
boolean |
true/false |
To create horizontal bordered navigation, use menuBorder variable value as true/false in horizontalMenuConfig block. |
horizontalMenuConfig |
menuShadow |
boolean |
true/false |
You can also apply horizontal navigation shadow, use menuShadow variable value as true/false in horizontalMenuConfig block. |