matrix-dimension/web/app/elements/ibox/ibox.component.ts
2019-07-01 20:49:44 -06:00

22 lines
598 B
TypeScript

import { Component, Input, OnInit } from "@angular/core";
import { ANIMATION_FADE_IN_NOT_OUT } from "../../app.animations";
@Component({
selector: "my-ibox",
templateUrl: "./ibox.component.html",
styleUrls: ["./ibox.component.scss"],
animations: [ANIMATION_FADE_IN_NOT_OUT],
})
export class IboxComponent implements OnInit {
@Input() boxTitle: string;
@Input() isCollapsible: boolean;
@Input() defaultCollapsed: boolean;
@Input() hasTitle = true;
public collapsed = false;
public ngOnInit(): void {
this.collapsed = this.defaultCollapsed;
}
}