Skip to main content
Version: 0.9.0-beta.2

Class: NotificationModel<T>

molecule.model.NotificationModel

Type parameters

Name
T

Implements

Constructors

constructor

new NotificationModel<T>(id?, name?, data?, sortIndex?, showNotifications?, actionBar?, render)

Type parameters

Name
T

Parameters

NameTypeDefault value
idUniqueId''
namestring''
dataINotificationItem<T>[][]
sortIndexnumber1
showNotificationsbooleanfalse
actionBarIActionBarItemProps<any>[][]
render() => ReactNodeundefined

Defined in

src/model/notification.tsx:33

Properties

actionBar

actionBar: IActionBarItemProps<any>[]

Implementation of

INotification.actionBar

Defined in

src/model/notification.tsx:31


data

data: INotificationItem<T>[]

Implementation of

INotification.data

Defined in

src/model/notification.tsx:27


id

id: UniqueId

Implementation of

INotification.id

Defined in

src/model/notification.tsx:25


name

name: string

Implementation of

INotification.name

Defined in

src/model/notification.tsx:26


render

render: () => ReactNode

Type declaration

▸ (): ReactNode

Returns

ReactNode

Implementation of

INotification.render

Defined in

src/model/notification.tsx:29


showNotifications

showNotifications: boolean

Implementation of

INotification.showNotifications

Defined in

src/model/notification.tsx:30


sortIndex

sortIndex: number

Implementation of

INotification.sortIndex

Defined in

src/model/notification.tsx:28