NotificationAttributes

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

Properties

Link copied to clipboard
const val assertive: String

When true, the notification card has aria-live attribute set to assertive instead of polite. This makes screen readers announce the notification content immediately when it appears.

Link copied to clipboard
const val duration: String

The duration in milliseconds to show the notification. Set to 0 or a negative number to disable the notification auto-closing.

Link copied to clipboard
const val opened: String

True if the notification is currently displayed.

Link copied to clipboard
const val overlayClass: String

A space-delimited list of CSS class names to set on the overlay element. This property does not affect other CSS class names set manually via JS.

Link copied to clipboard
const val position: String

Alignment of the notification in the viewport Valid values are top-stretch|top-start|top-center|top-end|middle|bottom-start|bottom-center|bottom-end|bottom-stretch

Link copied to clipboard
const val renderer: String

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

Link copied to clipboard
const val theme: String

The theme variants to apply to the component.