Accordion Module Name: AccordionModule
Module Name: AccordionModule
Displays collapsible content panels for presenting information in a limited amount of space.
Basic Usage
Content 1
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, a nd more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Content 2
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, a nd more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Content 3
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, a nd more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
<tl-accordion [singleOpened]="true">
<tl-accordion-item [title]="'Title of the first content'">
<!--Content 1-->
</tl-accordion-item>
<tl-accordion-item [title]="'Title of the second content'" [opened]="true">
<!--Content 2-->
</tl-accordion-item>
<tl-accordion-item [title]="'Title of the third content'">
<!--Content 3-->
</tl-accordion-item>
</tl-accordion>
Nested Accordions
Content 1
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, a nd more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Content 1
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, a nd more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Content 2
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, a nd more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Content 3
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, a nd more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Content 3
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, a nd more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
<tl-accordion [singleOpened]="true">
<tl-accordion-item [title]="'Title of the first content'" [opened]="true">
<!--Content 1-->
</tl-accordion-item>
<tl-accordion-item [title]="'Title of the second content'">
<!--Content 2-->
<tl-accordion [singleOpened]="true">
<tl-accordion-item [title]="'Title of the first content'">
<!--content-->
</tl-accordion-item>
<tl-accordion-item [opened]="true" [title]="'Title of the second content'">
<!--content-->
</tl-accordion-item>
<tl-accordion-item [disabled]="true" [title]="'Title of the third content'">
<!--content-->
</tl-accordion-item>
</tl-accordion>
</tl-accordion-item>
<tl-accordion-item [title]="'Title of the third content'">
<!--Content 3-->
</tl-accordion-item>
</tl-accordion>
Name | Type | Default | Description | Options |
---|---|---|---|---|
accordion-item.disabled | boolean | false | Defines the disabled state of accordion item. | true | false |
accordion-item.heightHeader | string | 45px | Define the height of the accordion's item height. | any text |
accordion-item.opened | boolean | false | Defines the opened state of accordion item. | true | false |
accordion-item.title | string | Title 1 | Define the title of the accordion item. | any text |
accordion.singleOpened | boolean | false | Defines if the accordion will open one item at the time. | true | false |