md2-collapse
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.0 • Public • Published

md2-collapse

Native Angular2 Material Collapse directive

Installation

npm install --save md2-collapse

API

Example:

HTML sample code

<div [collapse]="isCollapsed">
 Lorum Ipsum Content
</div>

TS sample code

//app-module.ts
 
import {Md2CollapseModule} from 'md2-collapse/collapse';
 
@NgModule({
 imports: [
   Md2CollapseModule,
 ],
 declarations: [
   ...
 ]  
})
 
//component.ts
 
...
 
@Component({
   selector: "..."
})
 
export class ... {
   
   ...
   
   private isCollapsed: boolean = false;
 
   ...
 
}

Properties

  • collapse - (?boolean=true) - It show/hide the collapsible content through toggling.

Package Sidebar

Install

npm i md2-collapse

Weekly Downloads

0

Version

0.0.1-alpha.0

License

MIT

Last publish

Collaborators

  • dharmeshpipariya