Reference Source
import Alert from 'flarum/components/Alert'
public class | source

Alert

Extends:

src/common/Component.js~Component → Alert

The Alert component represents an alert box, which contains a message, some controls, and may be dismissible.

Attrs

  • type The type of alert this is. Will be used to give the alert a class name of Alert--{type}.
  • controls An array of controls to show in the alert.
  • dismissible Whether or not the alert can be dismissed.
  • ondismiss A callback to run when the alert is dismissed.

All other attrs will be assigned as attributes on the DOM element.

Method Summary

Public Methods
public

view(vnode: *): *

Public Methods

public view(vnode: *): * source

Params:

NameTypeAttributeDescription
vnode *

Return:

*