DialogSettings
The settings that can be used when the Dialog is opened through DialogService
.
(see example).
Name | Type | Default | Description |
---|---|---|---|
actions? |
|
Sets the action buttons of the Dialog. | |
actionsLayout? |
|
Specifies the layout of the action buttons in the Dialog. | |
animation? |
|
Configures the Dialog opening animation (see example).
By default the animation type is set to | |
appendTo? |
|
Defines the container in which the Dialog will be inserted. Specifying this option changes the place in the page hierarchy where the Dialog will be inserted. The styling of the component will remain the same. | |
autoFocusedElement? |
|
Sets the focused element query selector. | |
closeTitle? |
|
Specifies the title of the close button. | |
content? |
|
Defines the content of the Dialog. (see example). | |
cssClass? |
|
Sets the CSS classes that will be rendered on the Dialog wrapper element. Supports the union type of values that NgClass accepts ngClass. | |
height? |
|
Specifies the height of the Dialog.
A numeric value sets the height in pixels.
A string value sets the height in arbitrary units—for example, | |
htmlAttributes? |
|
Sets the HTML attributes of the Dialog wrapper element. The property accepts string key-value based pairs. | |
maxHeight? |
|
Specifies the maximum height of the Dialog.
A numeric value sets the maximum height in pixels.
A string value sets the maximum height in arbitrary units—for example, | |
maxWidth? |
|
Specifies the maximum width of the Dialog.
A numeric value sets the maximum width in pixels.
A string value sets the maximum width in arbitrary units—for example, | |
minHeight? |
|
Specifies the minimum height of the Dialog.
A numeric value sets the minimum height in pixels.
A string value sets the minimum height in arbitrary units—for example, | |
minWidth? |
|
Specifies the minimum width of the Dialog.
A numeric value sets the minimum width in pixels.
A string value sets the minimum width in arbitrary units—for example, | |
preventAction? |
|
Defines a predicate that verifies if the pressed dialog action should be prevented. Returning true from the predicate prevents the dialog from closing.
If the Close button of the title bar is clicked, | |
themeColor? |
|
Specifies the theme color of the Dialog. | |
title? |
|
Sets the title of the Dialog. If | |
width? |
|
Specifies the width of the Dialog.
A numeric value sets the width in pixels.
A string value sets the width in arbitrary units—for example, |
Constructors
DialogSettings
()