[Library|Trunk]

fs-modal: add event emitter for close



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60629 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2021-03-11 16:27:28 +00:00
parent 3d76b4dc22
commit 39cd5682c9
1 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,8 @@ export class FullScreenModalComponent implements OnInit {
title: string = null;
@Output()
okEmitter: EventEmitter<boolean> = new EventEmitter<boolean>();
@Output()
cancelEmitter: EventEmitter<boolean> = new EventEmitter<boolean>();
opened: boolean = false;
private readonly element: any;
@ -69,6 +71,7 @@ export class FullScreenModalComponent implements OnInit {
if(typeof document !== "undefined") {
this.opened = false;
document.getElementsByTagName('html')[0].classList.remove('fs-modal-open');
this.cancelEmitter.emit();
}
}