Framework7 Accordion/ CollapsibleFramework7 Accordion is a graphical control element which is displayed as a stacked list of items. You can expand or collapse an accordion to show the content associated with that accordion. Accordion LayoutSee how an accordion layout looks like: Collapsible LayoutWhen you use single separate collapsible element, you need to omit the accordion-list wrapper element. See the structure of collapsible layout: Accordion List ViewIf you want to set Accordion List View, use "item-link" element instead of "accordion-toggle". Classes used for Accordion in Framework7Following is a list of classes used for Accordion in Framework7:
JavaScript API for AccordionJavaScript API are method used to open and close accordion programmatically. There are 3 JavaScript API methods:
Accordion EventsThere are 4 events listed for Accordion in Framework7:
ExampleTest it NowOutput:
Next TopicFramework7 Cards
|