MessageBar.addItem Method

Adds a new message to the bar.
 

Parameters

type

Type: MessageBarItemType
The kind of message to display.
content

Type: HtmlElement
The content to show inside.
isDismissable

Type: Boolean
A value indicating whether the message can be dismissed.
Optional: True
onDismiss

Type: Function
(optional) Callback to execute when the message is dismissed.
Optional: True