0.0.8 • Published 7 years ago

ng2-simple-accordion v0.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

Angular Simple Accordion

A very simple accordion directive.

@NgModule({
  ...
  imports:      [
    ...,
    AccordionModule
  ],
  ...
})
export class AppModule { }

Usage:

<div [accordion]="'group_identifier'" #accordionRef1="accordion">
<a (click)="accordionRef1.toggle($event)">First Row</a>
<template [ngIf]="accordionRef1.isShown">
  First View
</template>
</div>
<div [accordion]="'group_identifier'" #accordionRef2="accordion">
<a (click)="accordionRef2.toggle($event)">Second Row</a>
<template [ngIf]="accordionRef2.isShown">
  Second View
</template>
</div>
<div [accordion]="'group_identifier'" #accordionRef3="accordion">
<a (click)="accordionRef3.toggle($event)">Third Row</a>
<template [ngIf]="accordionRef3.isShown">
  Third View
</template>
</div>
0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago