Add PanelCollapseMode type

This commit is contained in:
Clemente Raposo 2024-11-01 10:30:11 +00:00 committed by Jack Anderson
parent f9a90ea115
commit 0d08d6a343

View file

@ -29,6 +29,8 @@ import {Button, ButtonInterface} from '../../common/components/button/button.mod
import {Observable, Subscription} from 'rxjs';
import {MinimiseButtonStatus} from '../minimise-button/minimise-button.component';
export type PanelCollapseMode = 'collapsible' | 'closable' | 'none';
@Component({
selector: 'scrm-panel',
templateUrl: './panel.component.html',
@ -40,7 +42,7 @@ export class PanelComponent implements OnInit, OnDestroy {
@Input() bodyPadding = 2;
@Input() title: string;
@Input() titleKey: string;
@Input() mode: 'collapsible' | 'closable' | 'none' = 'closable';
@Input() mode: PanelCollapseMode = 'closable';
@Input() isCollapsed$: Observable<boolean>;
@Input() close: ButtonInterface = {
klass: ['btn', 'btn-outline-light', 'btn-sm']