@angular-mdc/web
Version:
30 lines (29 loc) • 1.38 kB
TypeScript
import { ViewContainerRef, ComponentFactoryResolver } from '@angular/core';
export declare class MdcDialogConfig<D = any> {
viewContainerRef?: ViewContainerRef;
/** ID for the dialog. If omitted, a unique one will be generated. */
id?: string;
/** ID of the element that describes the dialog. */
ariaDescribedBy?: string | null;
/** Aria label to assign to the dialog element */
ariaLabel?: string | null;
/** Whether the user can use escape key to close the dialog */
escapeToClose?: boolean;
/** Whether the user can click outside to close the dialog */
clickOutsideToClose?: boolean;
/** Applied automatically when the dialog has overflowing content to warrant scrolling. */
scrollable?: boolean;
/** Applied automatically when the dialog's action buttons can't fit on a single line and must be stacked. */
buttonsStacked?: boolean;
/** Whether the dialog should focus the first focusable element on open. */
autoFocus?: boolean;
/**
* Whether the dialog should restore focus to the
* previously-focused element, after it's closed.
*/
restoreFocus?: boolean;
/** Alternate `ComponentFactoryResolver` to use when resolving the associated component. */
componentFactoryResolver?: ComponentFactoryResolver;
/** Data to be injected into the dialog content. */
data?: D | null;
}