You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(dialog): add configurable width, height and position (#1848)
* Adds the ability to set a dialog's `width` and `height`.
* Adds the ability to set a dialog's position. If only the position in one axis is overridden, the other axis will stay centered.
* Fixes the `GlobalPositionStrategy` adding an unnecessary `0px` transform.
* Makes the dialog scrollable.
* Adds more options to the dialog demo so it's easier to test them out.
Fixes#1698.
Copy file name to clipboardExpand all lines: src/lib/dialog/README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,11 @@ MdDialog is a service, which opens dialogs components in the view.
12
12
13
13
| Key | Description |
14
14
| --- | --- |
15
-
|`role: DialogRole = 'dialog'`| The ARIA role of the dialog element. Possible values are `dialog` and `alertdialog`. Defaults to `dialog`. |
16
-
|`disableClose: boolean = false`| Whether to prevent the user from closing a dialog by clicking on the backdrop or pressing escape. Defaults to `false`. |
15
+
|`role: DialogRole = 'dialog'`| The ARIA role of the dialog element. Possible values are `dialog` and `alertdialog`. Optional. |
16
+
|`disableClose: boolean = false`| Whether to prevent the user from closing a dialog by clicking on the backdrop or pressing escape. Optional. |
17
+
|`width: string = ''`| Width of the dialog. Takes any valid CSS value. Optional. |
18
+
|`height: string = ''`| Height of the dialog. Takes any valid CSS value. Optional. |
19
+
|`position: { top?: string, bottom?: string, left?: string, right?: string }`| Position of the dialog that overrides the default centering in it's axis. Optional. |
17
20
|`viewContainerRef: ViewContainerRef`| The view container ref to attach the dialog to. Optional. |
0 commit comments