Bootstrap 4 Accordion with Material Design UI
Accordion is an element used to expand and collapse content that is divided into logical sections, much like tabs. It allows users to toggle the display of sections of content.
Bootstrap 4 Accordion
Bootstrap 4 provides accordion to be used when there is a need for minimalistic way to show data. In this user will see the data of expanded accordion. Rest will be in hidden mode.
Propeller Accordion consists of Bootstrap 4 HTML structure with Propeller customized classes based on material design standards. Add
.pmd-accordion to your wrapper div to use Material accordion.
Inbox like Accordion
This accordion makes use of animation like that of Google Inbox to display the expanded view of data. In this way user will get more focus on the information inside the accordion. Add
.pmd-accordion-inbox to your wrapper div to use Inbox like accordion.
Accordion with No Space
.pmd-accordion-nospace to your wrapper div to remove the space between the cards of the accordion.
Accordion With All Expandable
When the users are typically interested in more than one piece of content in alternative content blocks, this accordion is useful. This is especially the case if users often return to review content in different content blocks. The user can open all expanders with content of interest and leave them open for reference or comparison.
Accordion with Icons
Icon plays an important role when it comes to visualisation. Icon gives user a visual hint of what the name of the accordion is all about.
Accordion with colored background
.bg-* to the accordion cards to create an accordion with colored bacgrounds.
The Propeller CSS classes apply various predefined visual enhancements to the accordion. Apart from the Bootstrap 4 classes, add Propeller customized classes to enhance your code. The table lists the available classes and their effects.
||Defines Propeller customized Accordion.||Optional|
||Add this class to create an accordion of the type of Google Inbox.||Optional|
||Add this class to create accordion complying with the google material design standards.||Optional|
Call the jQuery plugin to initialize the Accordion while fetching the data dynamically.
See here for more documentation on this.
||Activates your content as a collapsible element. Accepts an optional options object.|
||Toggles a collapsible element to shown or hidden.|
||Shows a collapsible element.|
||Hides a collapsible element.|
||Destroys an element’s collapse.|
Bootstrap 4's collapse class exposes a few events for hooking into collapse functionality. See here for more documentation on this.
||This event fires immediately when the show instance method is called.|
||This event is fired when a collapse element has been made visible to the user (will wait for CSS transitions to complete).|
||This event is fired immediately when the hide method has been called.|
||This event is fired when a collapse element has been hidden from the user (will wait for CSS transitions to complete).|