Components: Example usage of MdDialog doesn't use md-dialog-content

Created on 12 Jan 2017  路  4Comments  路  Source: angular/components

This page gives an example of how to use MdDialog but it does not surround the dialog contents with ...
https://github.com/angular/material2/tree/master/src/lib/dialog

(I assume it is always required. The description of md-dialog-content is: "Scrollable content of the dialog." does not say that it's only required if scrolling is desired.)

P3 has pr

Most helpful comment

For reference:

        <p md-dialog-title>{{ title }}</p>
        <md-dialog-content>
          <p>{{ message }}</p>
        </md-dialog-content>
        <md-dialog-actions>
          <button md-raised-button md-dialog-close>{{closeText}}</button>
          <button type="button" md-raised-button *ngIf="enableNext"
              (click)="dialogRef.close(true)">{{nextText}}</button>
        </md-dialog-actions>

This snippet demonstrates several things:

  1. variables can be utilized to insert text of anything.
  2. How md-dialog-title is used (this is documented in the example)
  3. How md-dialog-content is used.
  4. How is used.

All 4 comments

It's not required, and you can implement scrolling without it by using CSS

@crisbeto can you add an example for this once the examples are moved to the material2 repo in #2781?

For reference:

        <p md-dialog-title>{{ title }}</p>
        <md-dialog-content>
          <p>{{ message }}</p>
        </md-dialog-content>
        <md-dialog-actions>
          <button md-raised-button md-dialog-close>{{closeText}}</button>
          <button type="button" md-raised-button *ngIf="enableNext"
              (click)="dialogRef.close(true)">{{nextText}}</button>
        </md-dialog-actions>

This snippet demonstrates several things:

  1. variables can be utilized to insert text of anything.
  2. How md-dialog-title is used (this is documented in the example)
  3. How md-dialog-content is used.
  4. How is used.

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theunreal picture theunreal  路  3Comments

alanpurple picture alanpurple  路  3Comments

michaelb-01 picture michaelb-01  路  3Comments

MurhafSousli picture MurhafSousli  路  3Comments

3mp3ri0r picture 3mp3ri0r  路  3Comments