2017-12-22 23:08:10 -05:00
|
|
|
import { Component, Input, OnInit } from "@angular/core";
|
2018-03-24 00:12:34 -04:00
|
|
|
import { ANIMATION_FADE_IN_NOT_OUT } from "../../app.animations";
|
2017-12-22 23:08:10 -05:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: "my-ibox",
|
|
|
|
templateUrl: "./ibox.component.html",
|
|
|
|
styleUrls: ["./ibox.component.scss"],
|
2018-03-24 00:12:34 -04:00
|
|
|
animations: [ANIMATION_FADE_IN_NOT_OUT],
|
2017-12-22 23:08:10 -05:00
|
|
|
})
|
|
|
|
export class IboxComponent implements OnInit {
|
2019-04-13 18:29:53 -04:00
|
|
|
@Input() boxTitle: string;
|
2017-12-22 23:08:10 -05:00
|
|
|
@Input() isCollapsible: boolean;
|
|
|
|
@Input() defaultCollapsed: boolean;
|
|
|
|
|
|
|
|
public collapsed = false;
|
|
|
|
|
|
|
|
public ngOnInit(): void {
|
|
|
|
this.collapsed = this.defaultCollapsed;
|
|
|
|
}
|
|
|
|
}
|