mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
19 lines
454 B
TypeScript
19 lines
454 B
TypeScript
import { Component, Input, OnInit } from "@angular/core";
|
|
|
|
@Component({
|
|
selector: "my-ibox",
|
|
templateUrl: "./ibox.component.html",
|
|
styleUrls: ["./ibox.component.scss"],
|
|
})
|
|
export class IboxComponent implements OnInit {
|
|
@Input() title: string;
|
|
@Input() isCollapsible: boolean;
|
|
@Input() defaultCollapsed: boolean;
|
|
|
|
public collapsed = false;
|
|
|
|
public ngOnInit(): void {
|
|
this.collapsed = this.defaultCollapsed;
|
|
}
|
|
}
|