Skip to main content

foundation-notifications.toastbuilder

Home > @genesislcap/foundation-notifications > ToastBuilder

ToastBuilder class

Warning: This API is now obsolete.

Use showNotificationToast instead or provide a NotificationStructure object when used with an event for a notification listener.

Signature:

export declare class ToastBuilder 

Methods

Method

Modifiers

Description

build()

Build notification

withAutoClose(autoClose)

Add auto close to notification

withButtons(buttons)

Add buttons to notifications

withCloseTimeout(closeTimeout)

Add close timeout to notification

withDetails(details)

Add details data to notifications

withPosition(position)

Add position to toast

withType(type)

Add type to notification, if the type is anything other than 'warning' or 'success' do not add it