Reference Source
import AlertManagerState from 'flarum/states/AlertManagerState'
public class | source

AlertManagerState

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

clear()

Clear all alerts.

public

dismiss(key: *)

Dismiss an alert.

public
public

show(attrs: *, componentClass: *): *

Show an Alert in the alerts area.

Public Constructors

public constructor() source

Public Members

public activeAlerts: {} source

public alertId: number source

Public Methods

public clear() source

Clear all alerts.

public dismiss(key: *) source

Dismiss an alert.

Params:

NameTypeAttributeDescription
key *

public getActiveAlerts(): * source

Return:

*

public show(attrs: *, componentClass: *): * source

Show an Alert in the alerts area.

Params:

NameTypeAttributeDescription
attrs *
componentClass *
  • optional
  • default: Alert

Return:

*