Class IgcToastComponent

A toast component is used to show a notification

Element

igc-toast

Csspart

base - The base wrapper of the toast.

Hierarchy

Hierarchy

  • IgcBaseAlertLikeComponent
    • IgcToastComponent

Constructors

Properties

displayTime: number = 4000

Determines the duration in ms in which the component will be visible.

Attr

display-time

keepOpen: boolean = false

Determines whether the component should close after the displayTime is over.

Attr

keep-open

open: boolean = false

Whether the component is in shown state.

Attr

position: "top" | "bottom" | "middle" = 'bottom'

Sets the position of the component in the viewport.

Attr

styles: CSSResult[] = ...
tagName: "igc-toast" = 'igc-toast'

Methods