Bootstrap folding (Collapse) plugin make sidebar navigation menu

Source: Internet
Author: User

data-toggle= "Collapse" is added to the link for the component you want to expand or collapse. The href or data-target attribute is added to the parent component, and its value is the ID of the child component.

The following table lists the folding (Collapse) plug-ins that are used to handle the heavy scalable class:

Class Description instance
. collapse Hidden content. Try
. collapse.in Displays the content. Try
. collapsing is added when the transition effect is started, and is removed when the transition effect completes.

You can use the collapse (Collapse) plug-in in the following two ways: Add data-toggle= "Collapse" and data-targetto the element through the Data property : Automatically assigns control of collapsible elements. The Data-target property accepts a CSS selector and applies a folding effect to it. Make sure to add Class . Collapseto the collapsible element. If you want it to be open by default, add an Extra Class .

To add a group management similar to a collapsed panel to a collapsible control, add the Data property data-parent= "#selector." JavaScript: The Collapse method can be activated via JavaScript as follows: $ ('. Collapse '). Collapse ()


<span style= "FONT-SIZE:18PX;" > <div class= "Sidebar-nav" > <form class= "Search Form-inline" > <input type= "text" pla Ceholder= "Search ..." > </form> <a href= "#dashboard-menu" class= "Nav-header" data-toggle= "Colla PSE "><i class=" Icon-dashboard "></i> home </a> <ul id=" Dashboard-menu "class=" Nav nav-list Coll Apse "> <li><a href="/wirelessorder/home.do?flag=home "> Report </a></li> < Li><a href= "/WIRELESSORDER/HOME.DO?FLAG=GRZX" > Personal center </a></li> </ul> <a href= "
        #table-menu "class=" Nav-header "data-toggle=" collapse "><i class=" icon-table "></i> table </a> <ul id= "Table-menu" class= "nav nav-list collapse in" > <li ><a href= "/wirelessorder/table.do ? flag=table "> Table management </a></li> </ul> </span> <a href=" #menu-menu "class="Nav-header collapsed" data-toggle= "collapse" ><i class= "Icon-reorder" ></i> recipes </a> &l T;ul id= "Menu-menu" class= "nav nav-list collapse" > <li ><a href= "/wirelessorder/menu.do?flag=menu" > Menu Management </a></li> </ul> <a href= "#order-menu" class= "Nav-header" data-toggle= "Collap" Se "><i class=" icon-th-large ></i> order </a> <ul id= "Order-menu" class= "nav nav-list collapse" &
            Gt <li ><a href= "/wirelessorder/order.do?flag=order" > Order Management </a></li> </ul> &LT;/DIV&G T




Stacked navigation combined with bootstrap

You can add a title to a set of links, which defines a style (version 2.0.1) for the. Nav-list in Bootstrap.css line number 2201 through 2221.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.