PopoverElement
<vaadin-popover> is a Web Component for creating overlays that are positioned next to specified DOM element (target).
Unlike <vaadin-tooltip>, the popover supports rich content that can be provided by using renderer function.
Styling
The following shadow DOM parts are available for styling:
| Part name | Description |
|---|---|
backdrop | Backdrop of the overlay |
overlay | The overlay container |
content | The overlay content |
arrow | Optional arrow pointing to the target when using theme="arrow" |
The following state attributes are available for styling:
| Attribute | Description |
|---|---|
position | Reflects the position property value. |
The following custom CSS properties are available for styling:
| Custom CSS property |
|---|
--vaadin-overlay-backdrop-background |
--vaadin-popover-arrow-border-radius |
--vaadin-popover-arrow-inset |
--vaadin-popover-arrow-size |
--vaadin-popover-background |
--vaadin-popover-border-color |
--vaadin-popover-border-radius |
--vaadin-popover-border-width |
--vaadin-popover-offset-bottom |
--vaadin-popover-offset-end |
--vaadin-popover-offset-start |
--vaadin-popover-offset-top |
--vaadin-popover-padding |
--vaadin-popover-text-color |
--vaadin-popover-shadow |
See Styling Components documentation.
Properties
String used to label the popover to screen reader users.
Id of the element used as label of the popover to screen reader users.
The delay in milliseconds before the popover is opened on focus when the corresponding trigger is used.
The delay in milliseconds before the popover is opened on hover when the corresponding trigger is used.
Set to true to disable closing popover on Escape press.
Set to true to disable closing popover on outside click.
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.
The role attribute value to be set on the popover.
The role attribute value to be set on the popover. When not specified, defaults to 'dialog'.
When true, the popover has a backdrop (modality curtain) on top of the underlying page content, covering the whole viewport.
Functions
Requests an update for the content of the popover. While performing the update, it invokes the renderer passed in the renderer property.
Sets the default focus delay to be used by all popover instances, except for those that have focus delay configured using property.
Sets the default hide delay to be used by all popover instances, except for those that have hide delay configured using property.
Sets the default hover delay to be used by all popover instances, except for those that have hover delay configured using property.