Accordion Module Name: AccordionModule

Module Name: AccordionModule

Displays collapsible content panels for presenting information in a limited amount of space.

Showcase
Basic Usage
Title of the first content

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.

Title of the second content

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.

Title of the third content

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
Title of the first content

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.

Title of the second content
Title of the first content

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.

Title of the second content

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.

Title of the third content

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.

Title of the third content

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>
Properties
NameTypeDefaultDescriptionOptions
accordion-item.disabledbooleanfalseDefines the disabled state of accordion item. true | false
accordion-item.heightHeaderstring45pxDefine the height of the accordion's item height. any text
accordion-item.openedbooleanfalseDefines the opened state of accordion item. true | false
accordion-item.titlestringTitle 1Define the title of the accordion item. any text
accordion.singleOpenedbooleanfalseDefines if the accordion will open one item at the time. true | false