MessageBarModel interface
An interface representing a message bar
Properties
allow |
Indicates whether the message bar can be dismissed or not |
allow |
Control whether show expand button, only when isMultiline is false and text is too long. Expand button will control message bar to expand or close. |
banner |
The type of the message bar |
context | Additional context information |
is |
Indicates whether the message bar should be displayed as a single line or multiple lines |
is |
Indicates whether the message bar should be displayed with rounded corners |
link | The link URL |
link |
The localized aria label of the link in the message bar |
link |
The localized display name of the link in the message bar |
message | The localized message |
Property Details
allowDismiss
Indicates whether the message bar can be dismissed or not
allowDismiss?: boolean
Property Value
boolean
allowExpandButton
Control whether show expand button, only when isMultiline is false and text is too long. Expand button will control message bar to expand or close.
allowExpandButton?: boolean
Property Value
boolean
bannerType
context
Additional context information
context?: any
Property Value
any
isMultiline
Indicates whether the message bar should be displayed as a single line or multiple lines
isMultiline?: boolean
Property Value
boolean
isRoundedCorners
Indicates whether the message bar should be displayed with rounded corners
isRoundedCorners?: boolean
Property Value
boolean
link
The link URL
link?: string
Property Value
string
linkAriaLabel
The localized aria label of the link in the message bar
linkAriaLabel?: string
Property Value
string
linkDisplayName
The localized display name of the link in the message bar
linkDisplayName?: string
Property Value
string
message
The localized message
message?: string
Property Value
string