Bootstrap Learning JS Plugin (folding (collapse) plugin)

Source: Internet
Author: User
Tags button type

Bootstrapfolding (Collapse) plug-in

 The collapse (Collapse) plugin makes it easy to fold the page area. Whether you use it to create a collapsed navigation or a content panel, it allows many content options.

usage

The following table lists the class that the collapse (Collapse) plugin uses to handle heavy scaling:

Class Description  
. collapse Hide content.
. collapse.in Display content.
. collapsing It is added when the transition effect starts and is removed when the transition effect is complete.

You can use the collapse (Collapse) plugin in two ways:

    • with the Data property : Add data-toggle= "collapse" and data-targetto the element to automatically assign control of the collapsible element. The Data-target property accepts a CSS selector and applies a collapse effect to it. Be sure to add Class . Collapseto the collapsible element. If you want it to be turned on by default, add an Extra Class .in.

      In order to add grouping management like a folding panel to a collapsible control, add the Data property data-parent= "#selector".

<button type="Button" class="btn Btn-primary"data-toggle="collapse"data-target="#demo">Simple Collapsible Components</button> <divclass= "Collapse"Id="Demo">Nihil anim keffiyeh Helvetica, craft beer labore Wes Anderson cred Nesciunt sapiente ea proident.    Ad vegan excepteur butcher vice Lomo. </div>

Without adding extra class. In, the collapsed content is not open by default.

Add in is turned on by default, as follows:

<button type="Button" class="btn Btn-primary"data-toggle="collapse"data-target="#demo">Simple Collapsible Components</button> <divclass="collapse in"Id="Demo">Nihil anim keffiyeh Helvetica, craft beer labore Wes Anderson cred Nesciunt sapiente ea proident.    Ad vegan excepteur butcher vice Lomo. </div>

Bootstrap Learning JS plugin (folding (collapse) plugin)

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.