Disabled Link

Description

The disabled navigation option allow you to disable certain level navigation link.

CSS Classes

This table contains class to disable navigation menu link.

All these options can be set via following classes:

Classes Description
.disabled To disabled vertical navigation menu link, you need to add .disabled class in navigation <li> tag. Refer HTML markup line no 12.

HTML Markup

This section contains HTML Markup to create vertical bordered navigation. It define where to add css classes to make vertical bordered navigation.

  • Line no 26 & 22: Contain the .disabled class, Line 16 shows to disabled parent menu item and Line 22 shows disabled child menu item.
                  
                      <!DOCTYPE html>
                        <html lang="en">
                          <head></head>
                          <body data-menu="vertical-menu" class="vertical-layout vertical-menu 2-column menu-expanded">
                            <!-- navbar-static-top-->
                            <nav role="navigation" class="header-navbar navbar-expand-sm navbar navbar-with-menu navbar-static-top navbar-dark navbar-shadow navbar-border">
                                ...
                            </nav>
                            <!-- BEGIN Navigation-->
                            <div class="main-menu menu-dark menu-native-scroll menu-shadow">
                                <div class="main-menu-header">
                                  <div data-mcs-theme="minimal-dark" class="main-menu-content ps-container ps-theme-light ps-active-y">
                                    <ul id="main-menu-navigation" data-menu="menu-navigation" class="navigation navigation-main">
                                      <li class="nav-item disabled"><a href="index.html"><i class="icon-home3"></i><span class="menu-title">Dashboard <span class="badge badge-default badge-info float-right">1.2.2</span><span class="badge badge-default badge-info float-right"></span></span></a>
                                      </li>
                                      <li class="nav-item has-sub open"><a href="#"><i class="icon-monitor3"></i><span class="menu-title">Layouts<span class="badge badge-default badge-info float-right"></span></span></a>
                                        <ul class="menu-content">
                                          <li class="is-shown"><a href="#">Layout 1</a>
                                          </li>
                                          <li class="is-shown disabled"><a href="#">Layout 2 <span class="badge badge-default badge-info float-right">New</span></a>
                                          </li>
                                          <li class="is-shown"><a href="#">Layout 3</a>
                                          </li>
                                          <li class="is-shown"><a href="#">Layout 4</a>
                                          </li>
                                          <li class="disabled is-shown"><a href="#">Layout 5<span class="tag menu-sub-title">Coming soon</span></a>
                                          </li>
                                        </ul>
                                      </li>
                                    </ul>
                                  </div>
                                </div>
                            </div>
                            <!-- END Navigation-->
                            <!-- BEGIN Content-->
                            <div class="content app-content">
                                <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>
                  
                

JADE Configuration

Stack 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.

Menu JSON Configurations
Options Description
classlist Is the name of menu object, you can add any classes related to that navigation link. To disable add disabled.
JADE Code

You need to add navigation disabled link options to menu JSON object, please read the documentation to customize the menu using JADE.

  • Line no 18 & 24: Contain disabled navigation link JSON configurations options.

Stack Admin use the common menu JSON object to generate same menu on each pages of your template that will save your time by reducing the repetitive menu customization task on each page. This template has menu example jade file for every layouts, Here in below example, it shows vertical menu layout menu JADE file vertical-menu.jade, you can use it on template level only it will generate whole template with the same menu options.

                  
                      +verticalMenu([
                      //- Main Navigation Header
                      {navheader:"Main",icon:"icon-ellipsis"},
                        //- Dashbaord
                        {url:"index.html",name:"Dashboard",slug:"dashboard",icon:"icon-home3",  classlist:"disabled"},
                        //- Layouts Start
                        {url:"#",name:"Layouts",slug:"",icon:"icon-monitor3",
                          //- Layouts Submenu
                          submenu:[
                            {url:"#",name:"Layout 1",slug:"", classlist:"disabled"},
                            {url:"#",name:"Layout 2",slug:""},
                            {url:"#",name:"Layout 3",slug:""},
                            {url:"#",name:"Layout 4",slug:""},
                            {url:"#",name:"Layout 5",slug:"",classlist:"disabled",menuSubtitle:"Coming soon"},
                          ]
                        },
                        //- Layouts End
                    ]);