Interface MessageDialogConfig

interface MessageDialogConfig {
    ariaDescribedBy?: null | string;
    ariaLabel?: null | string;
    ariaLabelledBy?: null | string;
    autoFocus?: boolean;
    backdropClass?: string;
    closeOnNavigation?: boolean;
    direction?: Direction;
    hasBackdrop?: boolean;
    height?: string;
    maxHeight?: string | number;
    maxWidth?: string | number;
    minHeight?: string | number;
    minWidth?: string | number;
    panelClass?: string | string[];
    position?: DialogPosition;
    restoreFocus?: boolean;
    scrollStrategy?: ScrollStrategy;
    width?: string;
}

Properties

ariaDescribedBy?: null | string

ID of the element that describes the dialog.

ariaLabel?: null | string

Aria label to assign to the dialog element.

ariaLabelledBy?: null | string

ID of the element that labels the dialog.

autoFocus?: boolean

Whether the dialog should focus the first focusable element on open.

backdropClass?: string

Custom class for the backdrop.

closeOnNavigation?: boolean

Whether the dialog should close when the user goes backwards/forwards in history. Note that this usually doesn't include clicking on links (unless the user is using the HashLocationStrategy).

direction?: Direction

Layout direction for the dialog's content.

hasBackdrop?: boolean

Whether the dialog has a backdrop.

height?: string

Height of the dialog.

maxHeight?: string | number

Max-height of the dialog. If a number is provided, assumes pixel units.

maxWidth?: string | number

Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw.

minHeight?: string | number

Min-height of the dialog. If a number is provided, assumes pixel units.

minWidth?: string | number

Min-width of the dialog. If a number is provided, assumes pixel units.

panelClass?: string | string[]

Custom class for the overlay pane.

position?: DialogPosition

Position overrides.

restoreFocus?: boolean

Whether the dialog should restore focus to the previously-focused element, after it's closed.

scrollStrategy?: ScrollStrategy

Scroll strategy to be used for the dialog.

width?: string

Width of the dialog.