mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
780 B
33 lines
780 B
import {
|
|
ChangeDetectionStrategy,
|
|
Component,
|
|
EventEmitter,
|
|
Input,
|
|
Output
|
|
} from '@angular/core';
|
|
import { addIcons } from 'ionicons';
|
|
import { close } from 'ionicons/icons';
|
|
|
|
@Component({
|
|
host: { class: 'justify-content-center' },
|
|
selector: 'gf-dialog-header',
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
templateUrl: './dialog-header.component.html',
|
|
styleUrls: ['./dialog-header.component.scss'],
|
|
standalone: false
|
|
})
|
|
export class DialogHeaderComponent {
|
|
@Input() deviceType: string;
|
|
@Input() position: 'center' | 'left' = 'left';
|
|
@Input() title: string;
|
|
|
|
@Output() closeButtonClicked = new EventEmitter<void>();
|
|
|
|
public constructor() {
|
|
addIcons({ close });
|
|
}
|
|
|
|
public onClickCloseButton() {
|
|
this.closeButtonClicked.emit();
|
|
}
|
|
}
|
|
|