Constructor
new AlertItem(type, text)
Construct an alert item. An appropriate icon is chosen to correspond to the type of alert constructed.
Parameters
-
type
string
the type of alert, one of "info", "warn", "error", or "success"
-
text
string
the text to show in the alert