Product Delivery
Targeted Sales
Collicitudin vel metus scelerisque ante commodo.
In Progress25% Completed
Vertical collapsible navigation option
Collapsible vertical navigation open/close menu panel on menu click only.
Vertical collapsible navigation menu open or close only on menu click, it is useful for those menu have less menu item and need remain open last clicked menu option. You can experience collapsible navigation in left side menu.
This page contain collapsible navigation menu options example, check at the left hand side of the page.
This table contains all classes related to the vertical collapsible navigation option.
All these options can be set via following classes:
Classes | Description |
---|---|
.menu-collapsible |
To create vertical collapsible navigation, you need to add .menu-collapsible class in navigation <div> tag. Refer HTML markup line no 12. |
This section contains HTML Markup to create vertical collapsible navigation. It define where to add css classes to make vertical collapsible navigation.
.menu-collapsible
class to set vertical navigation collapsible.
<!DOCTYPE html>
<html lang="en">
<head></head>
<body data-menu="vertical-menu" class="vertical-layout vertical-menu 2-column menu-expanded">
<!-- navbar-fixed-top-->
<nav role="navigation" class="header-navbar navbar navbar-with-menu navbar-fixed-top navbar-dark navbar-shadow navbar-border">
...
</nav>
<!-- BEGIN Navigation-->
<div class="main-menu menu-dark menu-collapsible menu-shadow">
...
</div>
<!-- END Navigation-->
<!-- BEGIN Content-->
<div class="content robust-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>
Robust Admin use JADE as template engine to generate pages and whole template quickly using node js, for getting start with JADE usage & template generating process please refer template documentation.
This table contains required JADE variables to generate vertical collapsible navigation.
Variable | Value | Description |
---|---|---|
menuCustom |
'menu-collapsible' |
You need to add vertical collapsible navigation class to menuCustom variable value as 'menu-collapsible' in menuConfig block. |
Use following JADE code to generate page or template having vertical collapsible navigation.
menuConfig
block has a menuCustom
variable, it contains navigation specific classes in that you need to add menu-collapsible
content
block has content section html file included include ../contents/vertical-collapsible-navigation.html
, which can be customizable on page level.If you want to use vertical collapsible navigation options on page level you need to define it on page it self. This template has one example jade file for vertical-collapsible-navigation.jade
, however you can use it on template level but it will generate whole template have vertical collapsible navigation.
block pageVars
- var pageTitle = "Collapsible Navigation"
- var pageSubTitle = "Vertical collapsible navigation option"
- var description = "The collapsible vertical navigation open/close menu panel on click only."
- var activeMenu = "vertical-collapsible-navigation"
extends template
block menuConfig
- var menuCustom = "menu-light menu-fixed menu-shadow menu-collapsible"
//- OPTIONS : menu-fixed, menu-dark, menu-light, menu-collapsible, menu-accordion , menu-native-scroll, menu-icon-right, menu-border, menu-shadow
append breadcrumbs
include ../includes/mixins
+breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Navigation"}, {name:"Collapsible Navigation"}])
append page-header
include page-headers/breadcrumb-top
//- Include page content in page block
append content
include ../contents/vertical-collapsible-navigation.html
//- Page specific dependency
//------------------------------
//- Add custom page specific CSS
block pagecss
//- Add custom page specific JS
block pagejs