In the MdDialog md-dialog-actions block, is it possible to align the button on the left and two buttons aligned on the right?
Here plnkr some things I'm trying to do. Let's say, according to the first modal, how do I separate the Yes and No buttons? (See file common-model.component.ts) (This plnkr has some other issues that I'm still working on, but this is not related to this issue.)
import { Component } from '@angular/core'; import { MdDialogRef } from "@angular/material"; @Component({ selector: 'common-modal', template: ` <h2 md-dialog-title id="modal-title">{{ title }}</h2> <md-dialog-content> <p class="dialog-body" id="modal-message">{{ message }}</p> </md-dialog-content> <md-dialog-actions align="right"> <button md-raised-button md-dialog-close id="modal-close-btn"> {{ buttonOptions.closeText }} </button> <button md-raised-button *ngIf="buttonOptions.enableNext" id="modal-next-button" (click)="dialogRef.close(true)"> {{ buttonOptions?.nextText }} </button> </md-dialog-actions>`, }) export class CommonModalComponent { title: string; message: string; buttonOptions: { closeText: string, nextText?: string, enableNext: boolean }; constructor(public dialogRef: MdDialogRef<CommonModalComponent>) { } }
source share