Base configuration class used when opening a Toast which automatically destroys after some time.

Type Parameters

Hierarchy

Constructors

constructor

  • new BaseToastDurationDismissibleConfig<T>(): BaseToastDurationDismissibleConfig<T>

Properties

Optional animated

animated?: boolean = true

Whether the toast should be animated.

Optional ariaLabel

ariaLabel?: string

Aria-label for the message toast component element.

Optional data

data?: T

Data being injected into the child component.

Optional duration

duration?: number = 3000

The length of time in milliseconds to wait before automatically dismissing the Message Toast.

Optional height

height?: string | number

Toast height.

Optional id

id?: string

Toast ID.

Optional maxHeight

maxHeight?: string | number

Toast maximum height.

Optional maxWidth

maxWidth?: string | number

Toast maximum width.

Optional minHeight

minHeight?: string | number

Toast minimum height.

Optional minWidth

minWidth?: string | number

Toast minimum width.

Optional mousePersist

mousePersist?: boolean = true

Whether the message toast should stay visible if the cursor is over it. Default is true

Optional positionStrategy

positionStrategy?: BaseToastPosition = ToastBottomCenterPosition

Toast position strategy.

Optional width

width?: string | number

Toast width.