Reference Source
import AlertManager from 'flarum/components/AlertManager.js'
public class | source

AlertManager

Extends:

flarum/Component~Component → AlertManager

The AlertManager component provides an area in which Alert components can be shown and dismissed.

Member Summary

Protected Members
protected

An array of Alert components which are currently showing.

Method Summary

Public Methods
public

clear()

Clear all alerts.

public

dismiss(component: Alert)

Dismiss an alert.

public

init()

public

show(component: Alert)

Show an Alert in the alerts area.

public

view(): *

Protected Members

protected components: Alert[] source

An array of Alert components which are currently showing.

Public Methods

public clear() source

Clear all alerts.

public dismiss(component: Alert) source

Dismiss an alert.

Params:

NameTypeAttributeDescription
component Alert

public init() source

public show(component: Alert) source

Show an Alert in the alerts area.

Params:

NameTypeAttributeDescription
component Alert

public view(): * source

Return:

*