PopoverAttributes

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

Properties

Link copied to clipboard

String used to label the popover to screen reader users.

Link copied to clipboard

Id of the element used as label of the popover to screen reader users.

Link copied to clipboard
const val autofocus: String

When true, the popover content automatically receives focus after it is opened. Modal popovers use this behavior by default.

Link copied to clipboard
const val focusDelay: String

The delay in milliseconds before the popover is opened on focus when the corresponding trigger is used.

Link copied to clipboard
const val for: String

The id of the element to be used as target value. The element should be in the DOM by the time when the attribute is set, otherwise a warning is shown.

Link copied to clipboard
const val height: String

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

Link copied to clipboard
const val hideDelay: String

The delay in milliseconds before the popover is closed on losing hover, when the corresponding trigger is used. On blur, the popover is closed immediately.

Link copied to clipboard
const val hoverDelay: String

The delay in milliseconds before the popover is opened on hover when the corresponding trigger is used.

Link copied to clipboard
const val modal: String

When true, the popover prevents interacting with background elements by setting pointer-events style on the document body to none. This also enables trapping focus inside the popover.

Link copied to clipboard
const val noCloseOnEsc: String

Set to true to disable closing popover on Escape press.

Link copied to clipboard

Set to true to disable closing popover on outside click.

Link copied to clipboard
const val noTabFocus: String

When true, pressing Tab on the target or a sibling element does not move focus into the popover's content (including any nested popovers), and Shift+Tab does not move focus into the popover's last focusable. Focus still moves out of the popover on Tab / Shift+Tab if it was placed inside programmatically.

Link copied to clipboard
const val opened: String

True if the popover is visible and available for interaction.

Link copied to clipboard
const val overlayRole: String

The role attribute value to be set on the popover.

Link copied to clipboard
const val position: String

Position of the overlay with respect to the target. Supported values: top-start, top, top-end, bottom-start, bottom, bottom-end, start-top, start, start-bottom, end-top, end, end-bottom.

Link copied to clipboard
const val role: String

The role attribute value to be set on the popover. When not specified, defaults to 'dialog'.

Link copied to clipboard
const val theme: String

The theme variants to apply to the component.

Link copied to clipboard
const val trigger: String

Popover trigger mode, used to configure how the popover is opened or closed. Could be set to multiple by providing an array, e.g. trigger = ['hover', 'focus'].

Link copied to clipboard
const val width: String

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

Link copied to clipboard
const val withBackdrop: String

When true, the popover has a backdrop (modality curtain) on top of the underlying page content, covering the whole viewport.