ng-expandable-area
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

ng-expandable-area

Expandable area for Angular4+

Ng Expandable Area is an HTML <ng-expandable-area> tag enhanced with styling and animation.

Table of contents

Installation

  1. Install the component using npm:
# To get the latest stable version and update package.json file:
$ npm install ng-expandable-area --save

Setup

ng-expandable-area class is an Angular4+ module therefore, it needs to be registered in the modules array (encouraged way):

// app.module.ts
import { NgModule }             from '@angular/core';
import { BrowserModule }        from '@angular/platform-browser';
import { ExpandableAreaModule } from 'ng-expandable-area';
import { AppComponent }         from './app.component';

@NgModule({
  declarations: [ AppComponent ],
  imports: [
    BrowserModule,
    ExpandableAreatModule // import Angular's ExpandableAreaModule modules
  ],
  bootstrap: [ AppComponent ]
})
export class AppModule { }

Usage

Use in template:

<ng-expandable-area [title]="Title of expandabel section" [opened]="true || false">
<!--Your content-->
</ng-expandable-area>

Inputs

Name Type Default value
title string None
opened boolean false

License

[MIT License]

Package Sidebar

Install

npm i ng-expandable-area

Weekly Downloads

14

Version

1.0.5

License

MIT

Unpacked Size

72 kB

Total Files

23

Last publish

Collaborators

  • vovanz