Skip to main content

foundation-notifications.notificationbuilder

Home > @genesislcap/foundation-notifications > NotificationBuilder

NotificationBuilder class

Warning: This API is now obsolete.

Use showNotificationBanner/Dialog/Snackbar/Toast instead or provide a NotificationStructure object when used with an event for a notification listener.

NotificationBuilder to build NotificationStructure

Signature:

export declare class NotificationBuilder 

Methods

Method

Modifiers

Description

build()

Build NotificationStructure

withAlert(alert)

Add alert to notification

withBanner(banner)

Add banner to notification

withBody(body)

Add body details to notification

withCreatedAt(createdAt)

Add the creation date to notification

withDialog(dialog)

Add dialog to notification

withLogLevel(logLevel)

Add log level to notification

withSnackbar(snackbar)

Add snackbar to notification

withTitle(title)

Add title to notification

withToast(toast)

Add toast to notification