MaterialDialogComponent class

A styled container following the Material Spec for Dialogs.

Supported Content:

  • [header] -- Header content for the dialog.
  • [footer] -- Footer content for the dialog.

Attributes:

  • headered -- Adds a gray background to the dialog header.
  • info -- Styles the dialog as an info dialog.
Mixed-in types
Annotations
  • @Component(selector: 'material-dialog', templateUrl: 'material_dialog.html', styleUrls: ['material_dialog.scss.css'], directives: [FocusTrapComponent, NgIf], changeDetection: ChangeDetectionStrategy.onPush)

Constructors

MaterialDialogComponent(HtmlElement _rootElement, DomService _domService, ChangeDetectorRef _changeDetector, NgZone _ngZone, @Optional() ModalComponent? _modal)

Properties

error String?
Error to show up in the error section of the dialog.
getter/setter pair
escapeHandler KeyboardEventHandler?
Function to handle escape key events from the dialog. By default it tries to close the parent modal, if any.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
headerId String?
no setter
hideFooter bool
Whether to hide the dialog footer.
no getter
hideHeader bool
Whether to hide the dialog header.
no getter
isInFullscreenMode Stream<bool>
Stream for when the dialog enters or exits fullscreen mode.
no setter
isRtl bool?
Whether the direction of the component is RTL.
getter/setter pairinherited
main HtmlElement?
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldListenForFullscreenChanges bool
Determines whether to listen for when the dialog enters or exits fullscreen mode.
no getter
shouldShowBottomScrollStroke bool
getter/setter pair
shouldShowFooter bool
no setter
shouldShowHeader bool
no setter
shouldShowScrollStrokes bool
Whether to show the top/bottom borders on the
getter/setter pair
shouldShowTopScrollStroke bool
getter/setter pair

Methods

handleBackspaceKey(KeyboardEvent event) → void
inherited
handleCharCodeKey(KeyboardEvent event) → void
inherited
handleDeleteKey(KeyboardEvent event) → void
inherited
handleDownKey(KeyboardEvent event) → void
inherited
handleEndKey(KeyboardEvent event) → void
inherited
handleEnterKey(KeyboardEvent event) → void
inherited
handleEscapeKey(KeyboardEvent event) → void
override
handleHomeKey(KeyboardEvent event) → void
inherited
handleLeftKey(KeyboardEvent event) → void
inherited
handlePageDown(KeyboardEvent event) → void
inherited
handlePageUp(KeyboardEvent event) → void
inherited
handleRightKey(KeyboardEvent event) → void
inherited
handleSpaceKey(KeyboardEvent event) → void
inherited
handleUpKey(KeyboardEvent event) → void
inherited
ngAfterContentChecked() → void
ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onKeyDown(KeyboardEvent event) → void
Keydown callback used to handle arrow keys.
inherited
onKeyPress(KeyboardEvent event) → void
Keypress callback used to handle enter and space keys.
inherited
onKeyUp(KeyboardEvent event) → void
Keyup callback used to handle escape keys.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

ariaModel → const String
hostRole → const String