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