你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ErrorBarProps interface

ErrorBar的属性。

除了以下项,ErrorBar 将所有 <xref:%40fluentui%2Freact%23IMessageBarProps> 转发到基础 <xref:%40fluentui%2Freact%23MessageBar>。

扩展

IMessageBarProps

属性

activeErrorMessages

当前处于活动状态的错误。

ignorePremountErrors

如果已设置,则未显示 时间戳的错误 早于此组件装载的时间。

当将 ErrorBar 与处理多个呼叫或聊天线程的有状态客户端一起使用时,这非常有用。 设置此属性可忽略上一次呼叫或聊天中的错误。

onDismissError

触发 dismiss 按钮时调用的回调。 使用此选项可控制用户关闭时显示的错误。

strings

UI 上显示错误时显示的字符串。

继承属性

about
accessKey
actions

要显示在另一边的作。

aria-activedescendant

当 DOM 焦点位于复合小组件、文本框、组或应用程序上时,标识当前处于活动状态的元素。

aria-atomic

指示辅助技术是基于 aria 相关属性定义的更改通知显示更改区域的所有或仅显示部分。

aria-autocomplete

指示输入文本是否可以触发输入的一个或多个用户预期值的预测的显示,并指定预测在进行时如何呈现。

aria-braillelabel

定义一个字符串值,用于标记当前元素,该元素旨在转换为盲文。

参见 aria-label。

aria-brailleroledescription

为元素的角色定义用户可读的、作者本地化的缩写说明,该元素旨在转换为盲文。

请参阅 aria-roledescription。

aria-busy
aria-checked

指示复选框、单选按钮和其他小组件的当前“已选中”状态。

请参阅 aria-pressed See aria-selected。

aria-colcount

定义表、网格或树网格中的列总数。

请参阅 aria-colindex。

aria-colindex

定义元素的列索引或位置,相对于表、网格或树网格中的列总数。

请参阅 aria-colcount See aria-colspan.

aria-colindextext

定义 aria-colindex 的人类可读文本替代项。

请参阅 aria-rowindextext。

aria-colspan

定义表、网格或树网格单元跨越的列数。

请参阅 aria-colindex 请参阅 aria-rowspan。

aria-controls

标识其内容或状态由当前元素控制的元素(或元素)。

请参阅 aria 自有。

aria-current

指示表示容器或相关元素集中的当前项的元素。

aria-describedby

标识描述对象的元素(或元素)。

请参阅 aria-labelledby

aria-description

定义描述或批注当前元素的字符串值。

参见相关的 aria-describedby。

aria-details

标识提供对象的详细扩展说明的元素。

请参阅 aria-describedby。

aria-disabled

指示该元素可感知但已禁用,因此它不可编辑或不可作。

请参阅 aria 隐藏请参阅 aria-readonly。

aria-dropeffect

指示在放置目标上释放拖动对象时可以执行哪些函数。

aria-errormessage

标识为对象提供错误消息的元素。

请参阅 aria-invalid See aria-describedby.

aria-expanded

指示元素或它控制的另一个分组元素当前是展开还是折叠。

aria-flowto

标识内容的备用阅读顺序中的下一个元素(或元素),该元素(由用户自行决定)允许辅助技术替代文档源顺序中读取的一般默认值。

aria-grabbed

指示在拖放作中元素的“抓取”状态。

aria-haspopup

指示可由元素触发的交互式弹出元素(如菜单或对话框)的可用性和类型。

aria-hidden

指示该元素是否向辅助功能 API 公开。

请参阅 aria-disabled。

aria-invalid

指示输入的值不符合应用程序预期的格式。

请参阅 aria-errormessage。

aria-keyshortcuts

指示作者已实现以激活或向元素提供焦点的键盘快捷方式。

aria-label

定义标记当前元素的字符串值。

请参阅 aria-labelledby。

aria-labelledby

标识标记当前元素的元素(或元素)。

请参阅 aria-describedby。

aria-level

定义结构中元素的分层级别。

aria-live

指示元素将更新,并描述用户代理、辅助技术和用户可以从实时区域期待的更新类型。

aria-modal

指示元素在显示时是否为模式。

aria-multiline

指示文本框是接受多行输入还是只接受一行输入。

aria-multiselectable

指示用户可以从当前可选择的后代中选择多个项。

aria-orientation

指示元素的方向是水平、垂直还是未知/不明确。

aria-owns

标识元素(或元素),以便定义 DOM 层次结构不能用于表示关系的 DOM 元素之间的视觉、功能或上下文父/子关系。

请参阅 aria-controls。

aria-placeholder

定义一个短提示(一个单词或短短语),用于帮助用户在控件没有值时输入数据。 提示可以是示例值或预期格式的简要说明。

aria-posinset

定义元素在当前 listitems 或 treeitems 集中的数字或位置。 如果集中的所有元素都存在于 DOM 中,则不是必需的。

请参阅 aria-setsize。

aria-pressed

指示切换按钮的当前“按下”状态。

请参阅 aria-checked See aria-selected.

aria-readonly

指示该元素不可编辑,但不可作。

请参阅 aria-disabled。

aria-relevant

指示修改实时区域中的辅助功能树时,用户代理将触发哪些通知。

请参阅 aria-atomic。

aria-required

指示在提交表单之前,元素上需要用户输入。

aria-roledescription

为元素的角色定义人工可读的、作者本地化的说明。

aria-rowcount

定义表、网格或树网格中的行总数。

请参阅 aria-rowindex。

aria-rowindex

定义元素的行索引或位置,相对于表、网格或树网格中的行总数。

请参阅 aria-rowcount See aria-rowspan.

aria-rowindextext

定义 aria-rowindex 的人类可读文本替代项。

请参阅 aria-colindextext。

aria-rowspan

定义表、网格或树网格单元跨越的行数。

请参阅 aria-rowindex 请参阅 aria-colspan。

aria-selected

指示各种小组件的当前“选定”状态。

请参阅 aria-checked See aria-pressed.

aria-setsize

定义当前 listitems 或 treeitems 集中的项数。 如果集中的所有元素都存在于 DOM 中,则不是必需的。

请参阅 aria-posinset。

aria-sort

指示表或网格中的项是否按升序或降序排序。

aria-valuemax

定义范围小组件允许的最大值。

aria-valuemin

定义范围小组件允许的最小值。

aria-valuenow

定义范围小组件的当前值。

请参阅 aria-valuetext。

aria-valuetext

为范围小组件定义 aria-valuenow 的人类可读文本替代项。

ariaLabel

屏幕阅读器权益的消息栏的说明。

autoCapitalize
autoCorrect
autoFocus
autoSave
children
className

要应用于 MessageBar 的其他 CSS 类(es)。

color
componentRef

用于访问 IMessageBar 接口的可选回调。 使用此方法而不是 ref 来访问组件的公共方法和属性。

content
contentEditable
contextMenu
dangerouslySetInnerHTML
datatype
defaultChecked
defaultValue
delayedRender

默认情况下,MessageBar 延迟呈现其内部实时区域中的内容,以帮助确保屏幕阅读器宣布它。 可以通过将此属性设置为 false来禁用该行为。

如果将此属性设置为 false,为确保正确公告,应:

  • 如果合适,请确保将 role 属性设置为 alert(如果 messageBarTypeerrorblockedsevereWarning),则默认执行此作;或
  • role 属性设置为 none(以避免嵌套 status 区域),将整个 MessageBar 包装在始终呈现的 <div role="status"> 中,并确保有条件地或延迟呈现 MessageBar。
dir
dismissButtonAriaLabel

如果定义了 onDismiss,则消除按钮上的 Aria 标签。

dismissIconProps

用于替换消除图标的自定义图标属性。 如果未设置,则默认值为“构造清除”图标。

draggable
enterKeyHint
expandButtonProps

可应用于 MessageBar 的展开按钮的按钮属性。

exportparts

请参阅 https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts

hidden
id
inlist
inputMode

提示用户在编辑元素或其内容时可能输入的数据类型

请参阅 https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute

is

指定标准 HTML 元素的行为应类似于定义的自定义内置元素

请参阅 https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is

isMultiline

确定消息栏是否多行。 如果为 false,并且文本溢出到按钮或另一行,则将其剪裁。

itemID
itemProp
itemRef
itemScope
itemType
key
lang
messageBarIconProps

用于替换消息栏图标的自定义图标属性。 如果未设置,则默认值为 messageBarType 设置的图标。

messageBarType

要呈现的 MessageBar 的类型。

nonce
onAbort
onAbortCapture
onAnimationEnd
onAnimationEndCapture
onAnimationIteration
onAnimationIterationCapture
onAnimationStart
onAnimationStartCapture
onAuxClick
onAuxClickCapture
onBeforeInput
onBeforeInputCapture
onBlur
onBlurCapture
onCanPlay
onCanPlayCapture
onCanPlayThrough
onCanPlayThroughCapture
onChange
onChangeCapture
onClick
onClickCapture
onCompositionEnd
onCompositionEndCapture
onCompositionStart
onCompositionStartCapture
onCompositionUpdate
onCompositionUpdateCapture
onContextMenu
onContextMenuCapture
onCopy
onCopyCapture
onCut
onCutCapture
onDismiss

消息栏是否具有关闭按钮及其回调。 如果为 null,则不显示关闭按钮。

onDoubleClick
onDoubleClickCapture
onDrag
onDragCapture
onDragEnd
onDragEndCapture
onDragEnter
onDragEnterCapture
onDragExit
onDragExitCapture
onDragLeave
onDragLeaveCapture
onDragOver
onDragOverCapture
onDragStart
onDragStartCapture
onDrop
onDropCapture
onDurationChange
onDurationChangeCapture
onEmptied
onEmptiedCapture
onEncrypted
onEncryptedCapture
onEnded
onEndedCapture
onError
onErrorCapture
onExpandButtonToggled

切换展开按钮时执行的回调

onFocus
onFocusCapture
onGotPointerCapture
onGotPointerCaptureCapture
onInput
onInputCapture
onInvalid
onInvalidCapture
onKeyDown
onKeyDownCapture
onKeyPress
onKeyPressCapture
onKeyUp
onKeyUpCapture
onLoad
onLoadCapture
onLoadedData
onLoadedDataCapture
onLoadedMetadata
onLoadedMetadataCapture
onLoadStart
onLoadStartCapture
onLostPointerCapture
onLostPointerCaptureCapture
onMouseDown
onMouseDownCapture
onMouseEnter
onMouseLeave
onMouseMove
onMouseMoveCapture
onMouseOut
onMouseOutCapture
onMouseOver
onMouseOverCapture
onMouseUp
onMouseUpCapture
onPaste
onPasteCapture
onPause
onPauseCapture
onPlay
onPlayCapture
onPlaying
onPlayingCapture
onPointerCancel
onPointerCancelCapture
onPointerDown
onPointerDownCapture
onPointerEnter
onPointerLeave
onPointerMove
onPointerMoveCapture
onPointerOut
onPointerOutCapture
onPointerOver
onPointerOverCapture
onPointerUp
onPointerUpCapture
onProgress
onProgressCapture
onRateChange
onRateChangeCapture
onReset
onResetCapture
onScroll
onScrollCapture
onSeeked
onSeekedCapture
onSeeking
onSeekingCapture
onSelect
onSelectCapture
onStalled
onStalledCapture
onSubmit
onSubmitCapture
onSuspend
onSuspendCapture
onTimeUpdate
onTimeUpdateCapture
onTouchCancel
onTouchCancelCapture
onTouchEnd
onTouchEndCapture
onTouchMove
onTouchMoveCapture
onTouchStart
onTouchStartCapture
onTransitionEnd
onTransitionEndCapture
onVolumeChange
onVolumeChangeCapture
onWaiting
onWaitingCapture
onWheel
onWheelCapture
overflowButtonAriaLabel

如果定义了截断,则溢出按钮上的 Aria 标签。

part

请参阅 https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part

prefix
property
radioGroup
ref

允许获取组件实例的 ref。 一旦组件卸载,React 将设置为 ref.currentnull (如果你传递了回调 ref,则 null 使用 调用 ref)。

查看 React 文档

rel
resource
results
rev
role

要应用于 MessageBar 的自定义角色。

security
showExpandButton

用于显示展开/折叠图标的可选覆盖。 默认情况下,它只会对没有 action 的单行截断 MessageBars 显示。

slot
spellCheck
style
styles

调用以提供将在变体规则之上分层的自定义样式。

suppressContentEditableWarning
suppressHydrationWarning
tabIndex
theme

主题(通过自定义提供)。

title
translate
truncated

确定消息栏文本是否已截断。 如果为 true,按钮将呈现在单行视图和多行视图之间切换。 此属性适用于单行消息栏,仅在有限的空间方案中没有按钮。

typeof
unselectable
vocab

属性详细信息

activeErrorMessages

当前处于活动状态的错误。

activeErrorMessages: ActiveErrorMessage[]

属性值

ignorePremountErrors

如果已设置,则未显示 时间戳的错误 早于此组件装载的时间。

当将 ErrorBar 与处理多个呼叫或聊天线程的有状态客户端一起使用时,这非常有用。 设置此属性可忽略上一次呼叫或聊天中的错误。

ignorePremountErrors?: boolean

属性值

boolean

onDismissError

触发 dismiss 按钮时调用的回调。 使用此选项可控制用户关闭时显示的错误。

onDismissError?: (dismissedError: ActiveErrorMessage) => void

属性值

(dismissedError: ActiveErrorMessage) => void

strings

UI 上显示错误时显示的字符串。

strings?: ErrorBarStrings

属性值

继承属性详细信息

about

about?: string

属性值

string

继承自 IMessageBarProps.about

accessKey

accessKey?: string

属性值

string

继承自 IMessageBarProps.accessKey

actions

要显示在另一边的作。

actions?: Element

属性值

Element

继承自 IMessageBarProps.actions

aria-activedescendant

当 DOM 焦点位于复合小组件、文本框、组或应用程序上时,标识当前处于活动状态的元素。

aria-activedescendant?: string

属性值

string

继承自 IMessageBarProps.aria-activedescendant

aria-atomic

指示辅助技术是基于 aria 相关属性定义的更改通知显示更改区域的所有或仅显示部分。

aria-atomic?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-atomic

aria-autocomplete

指示输入文本是否可以触发输入的一个或多个用户预期值的预测的显示,并指定预测在进行时如何呈现。

aria-autocomplete?: "none" | "list" | "inline" | "both"

属性值

"none" | "list" | "inline" | "both"

继承自 IMessageBarProps.aria-autocomplete

aria-braillelabel

定义一个字符串值,用于标记当前元素,该元素旨在转换为盲文。

参见 aria-label。

aria-braillelabel?: string

属性值

string

继承自 IMessageBarProps.aria-braille标签

aria-brailleroledescription

为元素的角色定义用户可读的、作者本地化的缩写说明,该元素旨在转换为盲文。

请参阅 aria-roledescription。

aria-brailleroledescription?: string

属性值

string

继承自 IMessageBarProps.aria-braillerole描述

aria-busy

aria-busy?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-busy

aria-checked

指示复选框、单选按钮和其他小组件的当前“已选中”状态。

请参阅 aria-pressed See aria-selected。

aria-checked?: boolean | "true" | "false" | "mixed"

属性值

boolean | "true" | "false" | "mixed"

继承自 IMessageBarProps.aria-checked

aria-colcount

定义表、网格或树网格中的列总数。

请参阅 aria-colindex。

aria-colcount?: number

属性值

number

继承自 IMessageBarProps.aria-colcount

aria-colindex

定义元素的列索引或位置,相对于表、网格或树网格中的列总数。

请参阅 aria-colcount See aria-colspan.

aria-colindex?: number

属性值

number

继承自 IMessageBarProps.aria-colindex

aria-colindextext

定义 aria-colindex 的人类可读文本替代项。

请参阅 aria-rowindextext。

aria-colindextext?: string

属性值

string

继承自 IMessageBarProps.aria-colindex文本

aria-colspan

定义表、网格或树网格单元跨越的列数。

请参阅 aria-colindex 请参阅 aria-rowspan。

aria-colspan?: number

属性值

number

继承自 IMessageBarProps.aria-colspan

aria-controls

标识其内容或状态由当前元素控制的元素(或元素)。

请参阅 aria 自有。

aria-controls?: string

属性值

string

继承自 IMessageBarProps.aria-controls

aria-current

指示表示容器或相关元素集中的当前项的元素。

aria-current?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"

属性值

boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time"

继承自 IMessageBarProps.aria-current

aria-describedby

标识描述对象的元素(或元素)。

请参阅 aria-labelledby

aria-describedby?: string

属性值

string

继承自 IMessageBarProps.aria-describedby

aria-description

定义描述或批注当前元素的字符串值。

参见相关的 aria-describedby。

aria-description?: string

属性值

string

继承自 IMessageBarProps.aria 描述

aria-details

标识提供对象的详细扩展说明的元素。

请参阅 aria-describedby。

aria-details?: string

属性值

string

继承自 IMessageBarProps.aria-details

aria-disabled

指示该元素可感知但已禁用,因此它不可编辑或不可作。

请参阅 aria 隐藏请参阅 aria-readonly。

aria-disabled?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-disabled

aria-dropeffect

警告

现已弃用此 API。

in ARIA 1.1

指示在放置目标上释放拖动对象时可以执行哪些函数。

aria-dropeffect?: "none" | "link" | "copy" | "execute" | "move" | "popup"

属性值

"none" | "link" | "copy" | "execute" | "move" | "popup"

继承自 IMessageBarProps.aria-dropeffect

aria-errormessage

标识为对象提供错误消息的元素。

请参阅 aria-invalid See aria-describedby.

aria-errormessage?: string

属性值

string

继承自 IMessageBarProps.aria-errormessage

aria-expanded

指示元素或它控制的另一个分组元素当前是展开还是折叠。

aria-expanded?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-expanded

aria-flowto

标识内容的备用阅读顺序中的下一个元素(或元素),该元素(由用户自行决定)允许辅助技术替代文档源顺序中读取的一般默认值。

aria-flowto?: string

属性值

string

继承自 IMessageBarProps.aria-flowto

aria-grabbed

警告

现已弃用此 API。

in ARIA 1.1

指示在拖放作中元素的“抓取”状态。

aria-grabbed?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-grabbed

aria-haspopup

指示可由元素触发的交互式弹出元素(如菜单或对话框)的可用性和类型。

aria-haspopup?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree"

属性值

boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree"

继承自 IMessageBarProps.aria-haspopup

aria-hidden

指示该元素是否向辅助功能 API 公开。

请参阅 aria-disabled。

aria-hidden?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-hidden

aria-invalid

指示输入的值不符合应用程序预期的格式。

请参阅 aria-errormessage。

aria-invalid?: boolean | "true" | "false" | "grammar" | "spelling"

属性值

boolean | "true" | "false" | "grammar" | "spelling"

继承自 IMessageBarProps.aria-invalid

aria-keyshortcuts

指示作者已实现以激活或向元素提供焦点的键盘快捷方式。

aria-keyshortcuts?: string

属性值

string

继承自 IMessageBarProps.aria-keyshortcuts

aria-label

定义标记当前元素的字符串值。

请参阅 aria-labelledby。

aria-label?: string

属性值

string

继承自 IMessageBarProps.aria-label

aria-labelledby

标识标记当前元素的元素(或元素)。

请参阅 aria-describedby。

aria-labelledby?: string

属性值

string

继承自 IMessageBarProps.aria-labelledby

aria-level

定义结构中元素的分层级别。

aria-level?: number

属性值

number

继承自 IMessageBarProps.aria-level

aria-live

指示元素将更新,并描述用户代理、辅助技术和用户可以从实时区域期待的更新类型。

aria-live?: "assertive" | "off" | "polite"

属性值

"assertive" | "off" | "polite"

继承自 IMessageBarProps.aria-live

aria-modal

指示元素在显示时是否为模式。

aria-modal?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-modal

aria-multiline

指示文本框是接受多行输入还是只接受一行输入。

aria-multiline?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-multiline

aria-multiselectable

指示用户可以从当前可选择的后代中选择多个项。

aria-multiselectable?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-multiselectable

aria-orientation

指示元素的方向是水平、垂直还是未知/不明确。

aria-orientation?: "horizontal" | "vertical"

属性值

"horizontal" | "vertical"

继承自 IMessageBarProps.aria-orientation

aria-owns

标识元素(或元素),以便定义 DOM 层次结构不能用于表示关系的 DOM 元素之间的视觉、功能或上下文父/子关系。

请参阅 aria-controls。

aria-owns?: string

属性值

string

继承自 IMessageBarProps.aria-owns

aria-placeholder

定义一个短提示(一个单词或短短语),用于帮助用户在控件没有值时输入数据。 提示可以是示例值或预期格式的简要说明。

aria-placeholder?: string

属性值

string

继承自 IMessageBarProps.aria-placeholder

aria-posinset

定义元素在当前 listitems 或 treeitems 集中的数字或位置。 如果集中的所有元素都存在于 DOM 中,则不是必需的。

请参阅 aria-setsize。

aria-posinset?: number

属性值

number

继承自 IMessageBarProps.aria-posinset

aria-pressed

指示切换按钮的当前“按下”状态。

请参阅 aria-checked See aria-selected.

aria-pressed?: boolean | "true" | "false" | "mixed"

属性值

boolean | "true" | "false" | "mixed"

继承自 IMessageBarProps.aria-pressed

aria-readonly

指示该元素不可编辑,但不可作。

请参阅 aria-disabled。

aria-readonly?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-readonly

aria-relevant

指示修改实时区域中的辅助功能树时,用户代理将触发哪些通知。

请参阅 aria-atomic。

aria-relevant?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"

属性值

"text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"

继承自 IMessageBarProps.aria 相关

aria-required

指示在提交表单之前,元素上需要用户输入。

aria-required?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-required

aria-roledescription

为元素的角色定义人工可读的、作者本地化的说明。

aria-roledescription?: string

属性值

string

继承自 IMessageBarProps.aria-roledescription

aria-rowcount

定义表、网格或树网格中的行总数。

请参阅 aria-rowindex。

aria-rowcount?: number

属性值

number

继承自 IMessageBarProps.aria-rowcount

aria-rowindex

定义元素的行索引或位置,相对于表、网格或树网格中的行总数。

请参阅 aria-rowcount See aria-rowspan.

aria-rowindex?: number

属性值

number

继承自 IMessageBarProps.aria-rowindex

aria-rowindextext

定义 aria-rowindex 的人类可读文本替代项。

请参阅 aria-colindextext。

aria-rowindextext?: string

属性值

string

继承自 IMessageBarProps.aria-rowindextext

aria-rowspan

定义表、网格或树网格单元跨越的行数。

请参阅 aria-rowindex 请参阅 aria-colspan。

aria-rowspan?: number

属性值

number

继承自 IMessageBarProps.aria-rowspan

aria-selected

指示各种小组件的当前“选定”状态。

请参阅 aria-checked See aria-pressed.

aria-selected?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-selected

aria-setsize

定义当前 listitems 或 treeitems 集中的项数。 如果集中的所有元素都存在于 DOM 中,则不是必需的。

请参阅 aria-posinset。

aria-setsize?: number

属性值

number

继承自 IMessageBarProps.aria-setsize

aria-sort

指示表或网格中的项是否按升序或降序排序。

aria-sort?: "none" | "ascending" | "descending" | "other"

属性值

"none" | "ascending" | "descending" | "other"

继承自 IMessageBarProps.aria-sort

aria-valuemax

定义范围小组件允许的最大值。

aria-valuemax?: number

属性值

number

继承自 IMessageBarProps.aria-valuemax

aria-valuemin

定义范围小组件允许的最小值。

aria-valuemin?: number

属性值

number

继承自 IMessageBarProps.aria-valuemin

aria-valuenow

定义范围小组件的当前值。

请参阅 aria-valuetext。

aria-valuenow?: number

属性值

number

继承自 IMessageBarProps.aria-valuenow

aria-valuetext

为范围小组件定义 aria-valuenow 的人类可读文本替代项。

aria-valuetext?: string

属性值

string

继承自 IMessageBarProps.aria-valuetext

ariaLabel

警告

现已弃用此 API。

Use native prop aria-label instead.

屏幕阅读器权益的消息栏的说明。

ariaLabel?: string

属性值

string

继承自 IMessageBarProps.ariaLabel

autoCapitalize

autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {})

属性值

"off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {})

继承自 IMessageBarProps.autoCapitalize

autoCorrect

autoCorrect?: string

属性值

string

继承自 IMessageBarProps.autoCorrect

autoFocus

autoFocus?: boolean

属性值

boolean

继承自 IMessageBarProps.autoFocus

autoSave

autoSave?: string

属性值

string

继承自 IMessageBarProps.autoSave

children

children?: ReactNode

属性值

ReactNode

继承自 IMessageBarProps.children

className

要应用于 MessageBar 的其他 CSS 类(es)。

className?: string

属性值

string

继承自 IMessageBarProps.className

color

color?: string

属性值

string

继承自 IMessageBarProps.color

componentRef

用于访问 IMessageBar 接口的可选回调。 使用此方法而不是 ref 来访问组件的公共方法和属性。

componentRef?: IRefObject<IMessageBar>

属性值

IRefObject<IMessageBar>

继承自 IMessageBarProps.componentRef

content

content?: string

属性值

string

继承自 IMessageBarProps.content

contentEditable

contentEditable?: Booleanish | "inherit" | "plaintext-only"

属性值

Booleanish | "inherit" | "plaintext-only"

继承自 IMessageBarProps.contentEditable

contextMenu

contextMenu?: string

属性值

string

继承自 IMessageBarProps.contextMenu

dangerouslySetInnerHTML

dangerouslySetInnerHTML?: { __html: string | TrustedHTML }

属性值

{ __html: string | TrustedHTML }

继承自 IMessageBarProps.dangerouslySetInnerHTML

datatype

datatype?: string

属性值

string

继承自 IMessageBarProps.datatype

defaultChecked

defaultChecked?: boolean

属性值

boolean

继承自 IMessageBarProps.defaultChecked

defaultValue

defaultValue?: string | number | (readonly string[])

属性值

string | number | (readonly string[])

继承自 IMessageBarProps.defaultValue

delayedRender

默认情况下,MessageBar 延迟呈现其内部实时区域中的内容,以帮助确保屏幕阅读器宣布它。 可以通过将此属性设置为 false来禁用该行为。

如果将此属性设置为 false,为确保正确公告,应:

  • 如果合适,请确保将 role 属性设置为 alert(如果 messageBarTypeerrorblockedsevereWarning),则默认执行此作;或
  • role 属性设置为 none(以避免嵌套 status 区域),将整个 MessageBar 包装在始终呈现的 <div role="status"> 中,并确保有条件地或延迟呈现 MessageBar。
delayedRender?: boolean

属性值

boolean

继承自 IMessageBarProps.delayedRender

dir

dir?: string

属性值

string

继承自 IMessageBarProps.dir

dismissButtonAriaLabel

如果定义了 onDismiss,则消除按钮上的 Aria 标签。

dismissButtonAriaLabel?: string

属性值

string

继承自 IMessageBarProps.dismissButtonAriaLabel

dismissIconProps

用于替换消除图标的自定义图标属性。 如果未设置,则默认值为“构造清除”图标。

dismissIconProps?: IIconProps

属性值

IIconProps

继承自 IMessageBarProps.dismissIconProps

draggable

draggable?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.draggable

enterKeyHint

enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send"

属性值

"enter" | "done" | "go" | "next" | "previous" | "search" | "send"

继承自 IMessageBarProps.enterKeyHint

expandButtonProps

可应用于 MessageBar 的展开按钮的按钮属性。

expandButtonProps?: IButtonProps

属性值

IButtonProps

继承自 IMessageBarProps.expandButtonProps

exportparts

请参阅 https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts

exportparts?: string

属性值

string

继承自 IMessageBarProps.exportparts

hidden

hidden?: boolean

属性值

boolean

继承自 IMessageBarProps.hidden

id

id?: string

属性值

string

继承自 IMessageBarProps.id 的

inlist

inlist?: any

属性值

any

继承自 IMessageBarProps.inlist

inputMode

提示用户在编辑元素或其内容时可能输入的数据类型

请参阅 https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute

inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal"

属性值

"none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal"

继承自 IMessageBarProps.inputMode

is

指定标准 HTML 元素的行为应类似于定义的自定义内置元素

请参阅 https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is

is?: string

属性值

string

继承自 IMessageBarProps.is 的

isMultiline

确定消息栏是否多行。 如果为 false,并且文本溢出到按钮或另一行,则将其剪裁。

isMultiline?: boolean

属性值

boolean

继承自 IMessageBarProps.isMultiline

itemID

itemID?: string

属性值

string

继承自 IMessageBarProps.itemID

itemProp

itemProp?: string

属性值

string

继承自 IMessageBarProps.itemProp

itemRef

itemRef?: string

属性值

string

继承自 IMessageBarProps.itemRef

itemScope

itemScope?: boolean

属性值

boolean

继承自 IMessageBarProps.itemScope

itemType

itemType?: string

属性值

string

继承自 IMessageBarProps.itemType

key

key?: null | Key

属性值

null | Key

继承自 IMessageBarProps.key 的

lang

lang?: string

属性值

string

继承自 IMessageBarProps.lang

messageBarIconProps

用于替换消息栏图标的自定义图标属性。 如果未设置,则默认值为 messageBarType 设置的图标。

messageBarIconProps?: IIconProps

属性值

IIconProps

继承自 IMessageBarProps.messageBarIconProps

messageBarType

要呈现的 MessageBar 的类型。

messageBarType?: MessageBarType

属性值

MessageBarType

继承自 IMessageBarProps.messageBarType

nonce

nonce?: string

属性值

string

继承自 IMessageBarProps.nonce

onAbort

onAbort?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onAbort

onAbortCapture

onAbortCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onAbortCapture

onAnimationEnd

onAnimationEnd?: AnimationEventHandler<HTMLElement>

属性值

AnimationEventHandler<HTMLElement>

继承自 IMessageBarProps.onAnimationEnd

onAnimationEndCapture

onAnimationEndCapture?: AnimationEventHandler<HTMLElement>

属性值

AnimationEventHandler<HTMLElement>

继承自 IMessageBarProps.onAnimationEndCapture

onAnimationIteration

onAnimationIteration?: AnimationEventHandler<HTMLElement>

属性值

AnimationEventHandler<HTMLElement>

继承自 IMessageBarProps.onAnimationIteration

onAnimationIterationCapture

onAnimationIterationCapture?: AnimationEventHandler<HTMLElement>

属性值

AnimationEventHandler<HTMLElement>

继承自 IMessageBarProps.onAnimationIterationCapture

onAnimationStart

onAnimationStart?: AnimationEventHandler<HTMLElement>

属性值

AnimationEventHandler<HTMLElement>

继承自 IMessageBarProps.onAnimationStart

onAnimationStartCapture

onAnimationStartCapture?: AnimationEventHandler<HTMLElement>

属性值

AnimationEventHandler<HTMLElement>

继承自 IMessageBarProps.onAnimationStartCapture

onAuxClick

onAuxClick?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onAuxClick

onAuxClickCapture

onAuxClickCapture?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onAuxClickCapture

onBeforeInput

onBeforeInput?: InputEventHandler<HTMLElement>

属性值

InputEventHandler<HTMLElement>

继承自 IMessageBarProps.onBeforeInput

onBeforeInputCapture

onBeforeInputCapture?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onBeforeInputCapture

onBlur

onBlur?: FocusEventHandler<HTMLElement>

属性值

FocusEventHandler<HTMLElement>

继承自 IMessageBarProps.onBlur

onBlurCapture

onBlurCapture?: FocusEventHandler<HTMLElement>

属性值

FocusEventHandler<HTMLElement>

继承自 IMessageBarProps.onBlurCapture

onCanPlay

onCanPlay?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onCanPlay

onCanPlayCapture

onCanPlayCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onCanPlayCapture

onCanPlayThrough

onCanPlayThrough?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onCanPlayThrough

onCanPlayThroughCapture

onCanPlayThroughCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onCanPlayThroughCapture

onChange

onChange?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onChange

onChangeCapture

onChangeCapture?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onChangeCapture

onClick

onClick?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onClick

onClickCapture

onClickCapture?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onClickCapture

onCompositionEnd

onCompositionEnd?: CompositionEventHandler<HTMLElement>

属性值

CompositionEventHandler<HTMLElement>

继承自 IMessageBarProps.onCompositionEnd

onCompositionEndCapture

onCompositionEndCapture?: CompositionEventHandler<HTMLElement>

属性值

CompositionEventHandler<HTMLElement>

继承自 IMessageBarProps.onCompositionEndCapture

onCompositionStart

onCompositionStart?: CompositionEventHandler<HTMLElement>

属性值

CompositionEventHandler<HTMLElement>

继承自 IMessageBarProps.onCompositionStart

onCompositionStartCapture

onCompositionStartCapture?: CompositionEventHandler<HTMLElement>

属性值

CompositionEventHandler<HTMLElement>

继承自 IMessageBarProps.onCompositionStartCapture

onCompositionUpdate

onCompositionUpdate?: CompositionEventHandler<HTMLElement>

属性值

CompositionEventHandler<HTMLElement>

继承自 IMessageBarProps.onCompositionUpdate

onCompositionUpdateCapture

onCompositionUpdateCapture?: CompositionEventHandler<HTMLElement>

属性值

CompositionEventHandler<HTMLElement>

继承自 IMessageBarProps.onCompositionUpdateCapture

onContextMenu

onContextMenu?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onContextMenu

onContextMenuCapture

onContextMenuCapture?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onContextMenuCapture

onCopy

onCopy?: ClipboardEventHandler<HTMLElement>

属性值

ClipboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onCopy

onCopyCapture

onCopyCapture?: ClipboardEventHandler<HTMLElement>

属性值

ClipboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onCopyCapture

onCut

onCut?: ClipboardEventHandler<HTMLElement>

属性值

ClipboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onCut

onCutCapture

onCutCapture?: ClipboardEventHandler<HTMLElement>

属性值

ClipboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onCutCapture

onDismiss

消息栏是否具有关闭按钮及其回调。 如果为 null,则不显示关闭按钮。

onDismiss?: (ev?: MouseEvent<HTMLElement | BaseButton | Button, MouseEvent>) => any

属性值

(ev?: MouseEvent<HTMLElement | BaseButton | Button, MouseEvent>) => any

继承自 IMessageBarProps.onDismiss

onDoubleClick

onDoubleClick?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onDoubleClick

onDoubleClickCapture

onDoubleClickCapture?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onDoubleClickCapture

onDrag

onDrag?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDrag

onDragCapture

onDragCapture?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragCapture

onDragEnd

onDragEnd?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragEnd

onDragEndCapture

onDragEndCapture?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragEndCapture

onDragEnter

onDragEnter?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragEnter

onDragEnterCapture

onDragEnterCapture?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragEnterCapture

onDragExit

onDragExit?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragExit

onDragExitCapture

onDragExitCapture?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragExitCapture

onDragLeave

onDragLeave?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragLeave

onDragLeaveCapture

onDragLeaveCapture?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragLeaveCapture

onDragOver

onDragOver?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragOver

onDragOverCapture

onDragOverCapture?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragOverCapture

onDragStart

onDragStart?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragStart

onDragStartCapture

onDragStartCapture?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDragStartCapture

onDrop

onDrop?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDrop

onDropCapture

onDropCapture?: DragEventHandler<HTMLElement>

属性值

DragEventHandler<HTMLElement>

继承自 IMessageBarProps.onDropCapture

onDurationChange

onDurationChange?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onDurationChange

onDurationChangeCapture

onDurationChangeCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onDurationChangeCapture

onEmptied

onEmptied?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onEmptied

onEmptiedCapture

onEmptiedCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onEmptiedCapture

onEncrypted

onEncrypted?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onEncrypted

onEncryptedCapture

onEncryptedCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onEncryptedCapture

onEnded

onEnded?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onEnded

onEndedCapture

onEndedCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onEndedCapture

onError

onError?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onError

onErrorCapture

onErrorCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onErrorCapture

onExpandButtonToggled

切换展开按钮时执行的回调

onExpandButtonToggled?: (expandSingleLine: boolean) => void

属性值

(expandSingleLine: boolean) => void

继承自 IMessageBarProps.onExpandButtonToggled

onFocus

onFocus?: FocusEventHandler<HTMLElement>

属性值

FocusEventHandler<HTMLElement>

继承自 IMessageBarProps.onFocus

onFocusCapture

onFocusCapture?: FocusEventHandler<HTMLElement>

属性值

FocusEventHandler<HTMLElement>

继承自 IMessageBarProps.onFocusCapture

onGotPointerCapture

onGotPointerCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onGotPointerCapture

onGotPointerCaptureCapture

onGotPointerCaptureCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onGotPointerCaptureCapture

onInput

onInput?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onInput

onInputCapture

onInputCapture?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onInputCapture

onInvalid

onInvalid?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onInvalid

onInvalidCapture

onInvalidCapture?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onInvalidCapture

onKeyDown

onKeyDown?: KeyboardEventHandler<HTMLElement>

属性值

KeyboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onKeyDown

onKeyDownCapture

onKeyDownCapture?: KeyboardEventHandler<HTMLElement>

属性值

KeyboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onKeyDownCapture

onKeyPress

警告

现已弃用此 API。

Use onKeyUp or onKeyDown instead

onKeyPress?: KeyboardEventHandler<HTMLElement>

属性值

KeyboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onKeyPress

onKeyPressCapture

警告

现已弃用此 API。

Use onKeyUpCapture or onKeyDownCapture instead

onKeyPressCapture?: KeyboardEventHandler<HTMLElement>

属性值

KeyboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onKeyPressCapture

onKeyUp

onKeyUp?: KeyboardEventHandler<HTMLElement>

属性值

KeyboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onKeyUp

onKeyUpCapture

onKeyUpCapture?: KeyboardEventHandler<HTMLElement>

属性值

KeyboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onKeyUpCapture

onLoad

onLoad?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onLoad

onLoadCapture

onLoadCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onLoadCapture

onLoadedData

onLoadedData?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onLoadedData

onLoadedDataCapture

onLoadedDataCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onLoadedDataCapture

onLoadedMetadata

onLoadedMetadata?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onLoadedMetadata

onLoadedMetadataCapture

onLoadedMetadataCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onLoadedMetadataCapture

onLoadStart

onLoadStart?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onLoadStart

onLoadStartCapture

onLoadStartCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onLoadStartCapture

onLostPointerCapture

onLostPointerCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onLostPointerCapture

onLostPointerCaptureCapture

onLostPointerCaptureCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onLostPointerCaptureCapture

onMouseDown

onMouseDown?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseDown

onMouseDownCapture

onMouseDownCapture?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseDownCapture

onMouseEnter

onMouseEnter?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseEnter

onMouseLeave

onMouseLeave?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseLeave

onMouseMove

onMouseMove?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseMove

onMouseMoveCapture

onMouseMoveCapture?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseMoveCapture

onMouseOut

onMouseOut?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseOut

onMouseOutCapture

onMouseOutCapture?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseOutCapture

onMouseOver

onMouseOver?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseOver

onMouseOverCapture

onMouseOverCapture?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseOverCapture

onMouseUp

onMouseUp?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseUp

onMouseUpCapture

onMouseUpCapture?: MouseEventHandler<HTMLElement>

属性值

MouseEventHandler<HTMLElement>

继承自 IMessageBarProps.onMouseUpCapture

onPaste

onPaste?: ClipboardEventHandler<HTMLElement>

属性值

ClipboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onPaste

onPasteCapture

onPasteCapture?: ClipboardEventHandler<HTMLElement>

属性值

ClipboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onPasteCapture

onPause

onPause?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onPause

onPauseCapture

onPauseCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onPauseCapture

onPlay

onPlay?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onPlay

onPlayCapture

onPlayCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onPlayCapture

onPlaying

onPlaying?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onPlaying

onPlayingCapture

onPlayingCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onPlayingCapture

onPointerCancel

onPointerCancel?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerCancel

onPointerCancelCapture

onPointerCancelCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerCancelCapture

onPointerDown

onPointerDown?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerDown

onPointerDownCapture

onPointerDownCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerDownCapture

onPointerEnter

onPointerEnter?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerEnter

onPointerLeave

onPointerLeave?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerLeave

onPointerMove

onPointerMove?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerMove

onPointerMoveCapture

onPointerMoveCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerMoveCapture

onPointerOut

onPointerOut?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerOut

onPointerOutCapture

onPointerOutCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerOutCapture

onPointerOver

onPointerOver?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerOver

onPointerOverCapture

onPointerOverCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerOverCapture

onPointerUp

onPointerUp?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerUp

onPointerUpCapture

onPointerUpCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerUpCapture

onProgress

onProgress?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onProgress

onProgressCapture

onProgressCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onProgressCapture

onRateChange

onRateChange?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onRateChange

onRateChangeCapture

onRateChangeCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onRateChangeCapture

onReset

onReset?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onReset

onResetCapture

onResetCapture?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onResetCapture

onScroll

onScroll?: UIEventHandler<HTMLElement>

属性值

UIEventHandler<HTMLElement>

继承自 IMessageBarProps.onScroll

onScrollCapture

onScrollCapture?: UIEventHandler<HTMLElement>

属性值

UIEventHandler<HTMLElement>

继承自 IMessageBarProps.onScrollCapture

onSeeked

onSeeked?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onSeeked

onSeekedCapture

onSeekedCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onSeekedCapture

onSeeking

onSeeking?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onSeeking

onSeekingCapture

onSeekingCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onSeekingCapture

onSelect

onSelect?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onSelect

onSelectCapture

onSelectCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onSelectCapture

onStalled

onStalled?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onStalled

onStalledCapture

onStalledCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onStalledCapture

onSubmit

onSubmit?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onSubmit

onSubmitCapture

onSubmitCapture?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<HTMLElement>

继承自 IMessageBarProps.onSubmitCapture

onSuspend

onSuspend?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onSuspend

onSuspendCapture

onSuspendCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onSuspendCapture

onTimeUpdate

onTimeUpdate?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onTimeUpdate

onTimeUpdateCapture

onTimeUpdateCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onTimeUpdateCapture

onTouchCancel

onTouchCancel?: TouchEventHandler<HTMLElement>

属性值

TouchEventHandler<HTMLElement>

继承自 IMessageBarProps.onTouchCancel

onTouchCancelCapture

onTouchCancelCapture?: TouchEventHandler<HTMLElement>

属性值

TouchEventHandler<HTMLElement>

继承自 IMessageBarProps.onTouchCancelCapture

onTouchEnd

onTouchEnd?: TouchEventHandler<HTMLElement>

属性值

TouchEventHandler<HTMLElement>

继承自 IMessageBarProps.onTouchEnd

onTouchEndCapture

onTouchEndCapture?: TouchEventHandler<HTMLElement>

属性值

TouchEventHandler<HTMLElement>

继承自 IMessageBarProps.onTouchEndCapture

onTouchMove

onTouchMove?: TouchEventHandler<HTMLElement>

属性值

TouchEventHandler<HTMLElement>

继承自 IMessageBarProps.onTouchMove

onTouchMoveCapture

onTouchMoveCapture?: TouchEventHandler<HTMLElement>

属性值

TouchEventHandler<HTMLElement>

继承自 IMessageBarProps.onTouchMoveCapture

onTouchStart

onTouchStart?: TouchEventHandler<HTMLElement>

属性值

TouchEventHandler<HTMLElement>

继承自 IMessageBarProps.onTouchStart

onTouchStartCapture

onTouchStartCapture?: TouchEventHandler<HTMLElement>

属性值

TouchEventHandler<HTMLElement>

继承自 IMessageBarProps.onTouchStartCapture

onTransitionEnd

onTransitionEnd?: TransitionEventHandler<HTMLElement>

属性值

TransitionEventHandler<HTMLElement>

继承自 IMessageBarProps.onTransitionEnd

onTransitionEndCapture

onTransitionEndCapture?: TransitionEventHandler<HTMLElement>

属性值

TransitionEventHandler<HTMLElement>

继承自 IMessageBarProps.onTransitionEndCapture

onVolumeChange

onVolumeChange?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onVolumeChange

onVolumeChangeCapture

onVolumeChangeCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onVolumeChangeCapture

onWaiting

onWaiting?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onWaiting

onWaitingCapture

onWaitingCapture?: ReactEventHandler<HTMLElement>

属性值

ReactEventHandler<HTMLElement>

继承自 IMessageBarProps.onWaitingCapture

onWheel

onWheel?: WheelEventHandler<HTMLElement>

属性值

WheelEventHandler<HTMLElement>

继承自 IMessageBarProps.onWheel

onWheelCapture

onWheelCapture?: WheelEventHandler<HTMLElement>

属性值

WheelEventHandler<HTMLElement>

继承自 IMessageBarProps.onWheelCapture

overflowButtonAriaLabel

警告

现已弃用此 API。

Use expandButtonProps instead.

如果定义了截断,则溢出按钮上的 Aria 标签。

overflowButtonAriaLabel?: string

属性值

string

继承自 IMessageBarProps.overflowButtonAriaLabel

part

请参阅 https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part

part?: string

属性值

string

继承自 IMessageBarProps.part

prefix

prefix?: string

属性值

string

继承自 IMessageBarProps.prefix

property

property?: string

属性值

string

继承自 IMessageBarProps.property

radioGroup

radioGroup?: string

属性值

string

继承自 IMessageBarProps.radioGroup

ref

允许获取组件实例的 ref。 一旦组件卸载,React 将设置为 ref.currentnull (如果你传递了回调 ref,则 null 使用 调用 ref)。

查看 React 文档

ref?: LegacyRef<HTMLDivElement>

属性值

LegacyRef<HTMLDivElement>

继承自 IMessageBarProps.ref

rel

rel?: string

属性值

string

继承自 IMessageBarProps.rel

resource

resource?: string

属性值

string

继承自 IMessageBarProps.resource

results

results?: number

属性值

number

继承自 IMessageBarProps.results

rev

rev?: string

属性值

string

继承自 IMessageBarProps.rev

role

要应用于 MessageBar 的自定义角色。

role?: "none" | "alert" | "status"

属性值

"none" | "alert" | "status"

继承自 IMessageBarProps.role

security

security?: string

属性值

string

继承自 IMessageBarProps.security

showExpandButton

用于显示展开/折叠图标的可选覆盖。 默认情况下,它只会对没有 action 的单行截断 MessageBars 显示。

showExpandButton?: boolean

属性值

boolean

继承自 IMessageBarProps.showExpandButton

slot

slot?: string

属性值

string

继承自 IMessageBarProps.slot

spellCheck

spellCheck?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.spellCheck

style

style?: CSSProperties

属性值

CSSProperties

继承自 IMessageBarProps.style

styles

调用以提供将在变体规则之上分层的自定义样式。

styles?: IStyleFunctionOrObject<IMessageBarStyleProps, IMessageBarStyles>

属性值

IStyleFunctionOrObject<IMessageBarStyleProps, IMessageBarStyles>

继承自 IMessageBarProps.styles

suppressContentEditableWarning

suppressContentEditableWarning?: boolean

属性值

boolean

继承自 IMessageBarProps.suppressContentEditableWarning

suppressHydrationWarning

suppressHydrationWarning?: boolean

属性值

boolean

继承自 IMessageBarProps.suppressHydrationWarning

tabIndex

tabIndex?: number

属性值

number

继承自 IMessageBarProps.tabIndex

theme

主题(通过自定义提供)。

theme?: ITheme

属性值

ITheme

继承自 IMessageBarProps.theme

title

title?: string

属性值

string

继承自 IMessageBarProps.title

translate

translate?: "yes" | "no"

属性值

"yes" | "no"

继承自 IMessageBarProps.translate

truncated

确定消息栏文本是否已截断。 如果为 true,按钮将呈现在单行视图和多行视图之间切换。 此属性适用于单行消息栏,仅在有限的空间方案中没有按钮。

truncated?: boolean

属性值

boolean

继承自 IMessageBarProps.truncated

typeof

typeof?: string

属性值

string

继承自 IMessageBarProps.typeof

unselectable

unselectable?: "off" | "on"

属性值

"off" | "on"

继承自 IMessageBarProps.unselectable

vocab

vocab?: string

属性值

string

继承自 IMessageBarProps.vocab