DialogAttributes

Attribute names of <vaadin-dialog>, for use with setAttribute.

Properties

Link copied to clipboard
const val draggable: String

Set to true to enable repositioning the dialog by clicking and dragging.

Link copied to clipboard

Custom function for rendering the dialog footer. Receives two arguments:

Link copied to clipboard

Custom function for rendering the dialog header. Receives two arguments:

Link copied to clipboard
const val headerTitle: String

String used for rendering a dialog title.

Link copied to clipboard
const val height: String

Set the height of the dialog. If a unitless number is provided, pixels are assumed.

Link copied to clipboard

Set to true to prevent the dialog from moving outside the viewport bounds. When enabled, all four edges of the dialog will remain visible, for example when dragging the dialog or when the viewport is resized. Note that the dialog will also adjust any programmatically configured size and position so that it stays within the viewport.

Link copied to clipboard
const val left: String

Set the distance of the dialog from the left of the viewport. If a unitless number is provided, pixels are assumed.

Link copied to clipboard
const val modeless: String

Set to true to remove backdrop and allow click events on background elements.

Link copied to clipboard
const val noAutofocus: String

Set to true to prevent focus from moving into the dialog on open.

Link copied to clipboard
const val noCloseOnEsc: String

Set to true to disable closing dialog on Escape press

Link copied to clipboard

Set to true to disable closing dialog on outside click

Link copied to clipboard
const val noFocusTrap: String

Set to true to prevent the dialog from receiving focus on open and trapping it inside.

Link copied to clipboard
const val opened: String

True if the dialog is visible and available for interaction.

Link copied to clipboard
const val overlayRole: String

The role attribute value to be set on the dialog. Defaults to "dialog".

Link copied to clipboard
const val renderer: String

Custom function for rendering the content of the dialog. Receives two arguments:

Link copied to clipboard
const val resizable: String

Set to true to enable resizing the dialog by dragging the corners and edges.

Link copied to clipboard
const val theme: String

The theme variants to apply to the component.

Link copied to clipboard
const val top: String

Set the distance of the dialog from the top of the viewport. If a unitless number is provided, pixels are assumed.

Link copied to clipboard
const val width: String

Set the width of the dialog. If a unitless number is provided, pixels are assumed.