UNPKG

angular2-simple-ui

Version:

Angular 2 Simple Material Design UI Components customisable with Simple 30 KB CSS with LESS support and full features support , just plugin up and run for clarity look at sample examples

22 lines (18 loc) 560 B
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core'; @Component({ selector: 'sui-panel', templateUrl: './sui.panel.component.html', }) export class PanelComponent { @Input() headerText: string; @Input() headerClass: string; @Input() headerStyle: Object = {}; @Input() headerIcon: string; @Input() panelClass: string; @Input() panelStyle: Object = {}; @Input() closable = true; isClosed: boolean = false; onClose(event: any) { this.isClosed = true; } }