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