matrix-dimension/web/app/elements/ibox/ibox.component.ts

21 lines
568 B
TypeScript
Raw Normal View History

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 {
@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;
}
}