Home Reference Source
import Notification from '@osjs/client/src/notification.js'
public class | source

Notification

Notification Implementation

Constructor Summary

Public Constructor
public

constructor(core: Core, root: Element, options: NotificationOptions)

Create notification

Member Summary

Public Members
public

$element: Element

Notification DOM node

public

$root: Element

Root node reference

public

Core instance reference

public

The notification destruction state

public

Options

Method Summary

Public Methods
public

Destroy notification

public

Render notification

Public Constructors

public constructor(core: Core, root: Element, options: NotificationOptions) source

Create notification

Params:

NameTypeAttributeDescription
core Core

Core reference

root Element

Root DOM element

options NotificationOptions

Options

Public Members

public $element: Element source

Notification DOM node

public $root: Element source

Root node reference

public core: Core source

Core instance reference

public destroyed: Boolean source

The notification destruction state

public options: NotificationOptions source

Options

Public Methods

public destroy() source

Destroy notification

public render(): Promise<boolean> source

Render notification

Return:

Promise<boolean>