First try appcommon as library

This commit is contained in:
Willem Dantuma
2019-07-15 16:54:19 +02:00
parent fd17e0d538
commit f304cf5149
64 changed files with 4169 additions and 164 deletions

View File

@@ -0,0 +1,24 @@
import { Component, Input } from '@angular/core';
@Component({
selector: 'side-panel',
templateUrl: 'side-panel.component.html',
styleUrls: ['side-panel.component.scss']
})
export class SidePanelComponent {
@Input() public visible: boolean;
@Input() public collapsed: boolean;
@Input() public collapsable: boolean;
constructor() {
this.collapsable = false;
}
handleToggleClick(event) {
if (this.collapsable) {
this.collapsed = !this.collapsed;
}
}
}