Class IgcToastComponent

A toast component is used to show a notification

element

igc-toast

csspart

base - The base wrapper of the toast.

Hierarchy

  • LitElement
    • IgcToastComponent

Index

Constructors

  • Returns IgcToastComponent

Properties

displayTime: number = 4000

Determines the time after which the toast will close

keepOpen: boolean = false

Determines whether the toast is closed automatically or not.

open: boolean = false

Determines whether the toast is opened.

Methods

  • hide(): void
  • show(): void
  • toggle(): void