Package Exports
- ngx-expandable
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ngx-expandable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
NgxExpandable
An Angular 2+ component with zero dependencies that animates the visibility of projected content using a boolean flag.
This component is identical to Bootstrap's Collapse or NG Bootstrap's Collapse.
Additional benefits over NG Bootstrap:
- Animates the effect
- Allows customization of the animation duration
- Fewer lines of code as it uses Angular's native animation module
Installation
npm i @creativefew/ngx-expandable
Then add NgxExpandableModule
to your imports
array in your main app module. Make sure to import it at the top of the file.
Usage
<ngx-expandable [expanded]="false" [duration]="250"> Some content or other components </ngx-expandable>
Just pass a boolean value to the expanded
attribute. Duration milliseconds is optional.