Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 2497732

Browse files
feat(dialog): add priority input for multiple dialogs
1 parent e3f0d6a commit 2497732

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: projects/core/src/lib/dialog/dialog.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export class FivDialog implements OnInit {
6060
@Input() verticalAlign: 'bottom' | 'center' | 'top' = 'top';
6161
@Input() horizontalAlign: 'left' | 'middle' | 'right' = 'middle';
6262
@Input() shape: 'fill' | 'card' = 'card';
63+
@Input() priority = 20001;
6364

6465
@Input() backdrop = true;
6566
@Input() backdropDismiss = true;
@@ -85,7 +86,7 @@ export class FivDialog implements OnInit {
8586
constructor(private platform: Platform) { }
8687

8788
open() {
88-
this.overlay.show();
89+
this.overlay.show(this.priority);
8990

9091
this.dialogState = this.verticalAlign;
9192
if (this.duration) {

0 commit comments

Comments
 (0)