show

abstract fun show(contents: JsAny?, options: JsAny? = definedExternally)

Shows a notification with the given content. By default, positions the notification at bottom-start and uses a 5 second duration. An options object can be passed to configure the notification. The options object has the following structure:

{
assertive?: boolean
position?: string
duration?: number
theme?: string
}

See the individual documentation for:

  • #/elements/vaadin-notification#property-assertive

  • #/elements/vaadin-notification#property-position

  • #/elements/vaadin-notification#property-duration