From 128c3204a53f34e4002ee52de1c62bd3053ea43a Mon Sep 17 00:00:00 2001 From: crisbeto Date: Fri, 15 Mar 2019 22:35:02 +0100 Subject: [PATCH] docs(dialog): add doc for align attribute Adds a sentence to the docs about the `align` attribute of the dialog content. We can't document it through doc strings, because it isn't defined in TS. Fixes #15482. --- src/lib/dialog/dialog.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib/dialog/dialog.md b/src/lib/dialog/dialog.md index 0d07182bc987..de198325bad3 100644 --- a/src/lib/dialog/dialog.md +++ b/src/lib/dialog/dialog.md @@ -52,7 +52,8 @@ MAT_DIALOG_DEFAULT_OPTIONS in your application's root module. ``` ### Sharing data with the Dialog component. -If you want to share data with your dialog, you can use the `data` option to pass information to the dialog component. +If you want to share data with your dialog, you can use the `data` +option to pass information to the dialog component. ```ts let dialogRef = dialog.open(YourDialog, { @@ -80,11 +81,11 @@ export class YourDialog { ### Dialog content Several directives are available to make it easier to structure your dialog content: -| Name | Description | -|-----------------------|---------------------------------------------------------------------------------------------------------------| +| Name | Description | +|------------------------|---------------------------------------------------------------------------------------------------------------| | `mat-dialog-title` | \[Attr] Dialog title, applied to a heading element (e.g., `

`, `

`) | -| `` | Primary scrollable content of the dialog | -| `` | Container for action buttons at the bottom of the dialog | +| `` | Primary scrollable content of the dialog. | +| `` | Container for action buttons at the bottom of the dialog. Button alignment can be controlled via the `align` attribute which can be set to `end` and `center`. | | `mat-dialog-close` | \[Attr] Added to a `