MessageBarModel interface

An interface representing a message bar

Properties

allowDismiss

Indicates whether the message bar can be dismissed or not

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.

bannerType

The type of the message bar

context

Additional context information

isMultiline

Indicates whether the message bar should be displayed as a single line or multiple lines

isRoundedCorners

Indicates whether the message bar should be displayed with rounded corners

link

The link URL

linkAriaLabel

The localized aria label of the link in the message bar

linkDisplayName

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

The type of the message bar

bannerType: MessageBarType

Property Value

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

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