diff --git a/projects/up-window-angular/src/lib/up-window-angular.component.html b/projects/up-window-angular/src/lib/up-window-angular.component.html
index 65400ec..5f96073 100644
--- a/projects/up-window-angular/src/lib/up-window-angular.component.html
+++ b/projects/up-window-angular/src/lib/up-window-angular.component.html
@@ -7,9 +7,15 @@
aria-describedby="dialog-description"
aria-modal="true"
[attr.aria-hidden]="!isOpen()"
+ (click)="closeWindow('overlay')"
>
-
+
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 956662a..39f6976 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -34,16 +34,18 @@ export class AppComponent {
isWindowOpenSlideUp: WritableSignal
= signal(false);
isWindowOpenSlideDown: WritableSignal = signal(false);
isWindowOpenScale: WritableSignal = signal(false);
+ isWindowOpenRestrict: WritableSignal = signal(false);
- openWindowExample(animation: string) {
+ openWindowExample(type: string) {
this.isWindowOpenFade.set(false);
this.isWindowOpenSlideLeft.set(false);
this.isWindowOpenSlideRight.set(false);
this.isWindowOpenSlideUp.set(false);
this.isWindowOpenSlideDown.set(false);
this.isWindowOpenScale.set(false);
+ this.isWindowOpenRestrict.set(false);
- switch (animation) {
+ switch (type) {
case 'fade':
this.isWindowOpenFade.set(true);
break;
@@ -62,6 +64,9 @@ export class AppComponent {
case 'scale':
this.isWindowOpenScale.set(true);
break;
+ case 'restrict':
+ this.isWindowOpenRestrict.set(true);
+ break;
}
}