mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 20:50:13 +08:00
Add PanelCollapseMode type
This commit is contained in:
parent
f9a90ea115
commit
0d08d6a343
1 changed files with 3 additions and 1 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue