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

ErrorBarProps interface

ErrorBar 的属性。

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

Extends

IMessageBarProps

属性

activeErrorMessages

当前活动错误。

ignorePremountErrors

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

当将 ErrorBar 用于处理多个调用或聊天线程的有状态客户端时,这非常有用。 设置此属性可忽略之前通话或聊天中的错误。

strings

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

继承属性

about
accessKey
actions

要显示在另一侧的操作。

aria-activedescendant

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

aria-atomic

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

aria-autocomplete

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

aria-busy

指示正在修改元素,并且辅助技术可能希望等到修改完成之后再向用户公开它们。

aria-checked

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

请参阅 aria-pressed 请参阅 aria-selected。

aria-colcount

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

请参阅 aria-colindex。

aria-colindex

根据表、网格或树网格中的列总数定义元素的列索引或位置。

请参阅 aria-colcount 请参阅 aria-colspan。

aria-colspan

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

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

aria-controls

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

请参阅 aria-owns。

aria-current

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

aria-describedby

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

请参阅 aria-labelledby

aria-details

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

请参阅 aria-describedby。

aria-disabled

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

请参阅 aria-hidden See aria-readonly。

aria-dropeffect

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

aria-errormessage

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

请参阅 aria-invalid 请参阅 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

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

请参阅 aria-setsize。

aria-pressed

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

请参阅 aria-checked 请参阅 aria-selected。

aria-readonly

指示元素不可编辑,但其他方式可操作。

请参阅 aria-disabled。

aria-relevant

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

请参阅 aria-atomic。

aria-required

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

aria-roledescription

为元素的角色定义可读的、作者本地化的描述。

aria-rowcount

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

请参阅 aria-rowindex。

aria-rowindex

根据表、网格或树网格中的行总数定义元素的行索引或位置。

请参阅 aria-rowcount 请参阅 aria-rowspan。

aria-rowspan

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

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

aria-selected

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

请参阅 aria-checked 请参阅 aria-pressed。

aria-setsize

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

请参阅 aria-posinset。

aria-sort

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

aria-valuemax

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

aria-valuemin

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

aria-valuenow

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

请参阅 aria-valuetext。

aria-valuetext

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

ariaLabel

消息栏的说明,有利于屏幕阅读器。

autoCapitalize
autoCorrect
autoFocus
autoSave
children
className

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

color
componentRef

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

content
contentEditable
contextMenu
dangerouslySetInnerHTML
datatype
defaultChecked
defaultValue
delayedRender

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

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

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

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

dismissIconProps

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

draggable
expandButtonProps

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

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
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
onPointerEnterCapture
onPointerLeave
onPointerLeaveCapture
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 标签(如果已定义截断)。

placeholder
prefix
property
radioGroup
ref
rel
resource
results
rev
role

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

security
slot
spellCheck
style
styles

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

suppressContentEditableWarning
suppressHydrationWarning
tabIndex
theme

主题 (通过 customization.)

title
translate
truncated

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

typeof
unselectable
vocab

属性详细信息

activeErrorMessages

当前活动错误。

activeErrorMessages: ActiveErrorMessage[]

属性值

ignorePremountErrors

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

当将 ErrorBar 用于处理多个调用或聊天线程的有状态客户端时,这非常有用。 设置此属性可忽略之前通话或聊天中的错误。

ignorePremountErrors?: boolean

属性值

boolean

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?: "list" | "none" | "inline" | "both"

属性值

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

继承自 IMessageBarProps.aria-autocomplete

aria-busy

指示正在修改元素,并且辅助技术可能希望等到修改完成之后再向用户公开它们。

aria-busy?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-busy

aria-checked

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

请参阅 aria-pressed 请参阅 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 请参阅 aria-colspan。

aria-colindex?: number

属性值

number

继承自 IMessageBarProps.aria-colindex

aria-colspan

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

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

aria-colspan?: number

属性值

number

继承自 IMessageBarProps.aria-colspan

aria-controls

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

请参阅 aria-owns。

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-details

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

请参阅 aria-describedby。

aria-details?: string

属性值

string

继承自 IMessageBarProps.aria-details

aria-disabled

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

请参阅 aria-hidden See aria-readonly。

aria-disabled?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-disabled

aria-dropeffect

警告

现已弃用此 API。

in ARIA 1.1

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

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

属性值

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

继承自 IMessageBarProps.aria-dropeffect

aria-errormessage

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

请参阅 aria-invalid 请参阅 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?: "off" | "assertive" | "polite"

属性值

"off" | "assertive" | "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-占位符

aria-posinset

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

请参阅 aria-setsize。

aria-posinset?: number

属性值

number

继承自 IMessageBarProps.aria-posinset

aria-pressed

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

请参阅 aria-checked 请参阅 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 请参阅 aria-rowspan。

aria-rowindex?: number

属性值

number

继承自 IMessageBarProps.aria-rowindex

aria-rowspan

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

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

aria-rowspan?: number

属性值

number

继承自 IMessageBarProps.aria-rowspan

aria-selected

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

请参阅 aria-checked 请参阅 aria-pressed。

aria-selected?: Booleanish

属性值

Booleanish

继承自 IMessageBarProps.aria-selected

aria-setsize

定义当前列表项或树项集中的项数。 如果集中的所有元素都存在于 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?: string

属性值

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

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

className?: string

属性值

string

继承自 IMessageBarProps.className

color

color?: string

属性值

string

继承自 IMessageBarProps.color

componentRef

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

componentRef?: IRefObject<IMessageBar>

属性值

IRefObject<IMessageBar>

继承自 IMessageBarProps.componentRef

content

content?: string

属性值

string

继承自 IMessageBarProps.content

contentEditable

contentEditable?: Booleanish | "inherit"

属性值

Booleanish | "inherit"

继承自 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 (如果 为 errorblockedsevereWarning) ,则默认messageBarType执行此操作, 或
  • role prop 设置为 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

expandButtonProps

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

expandButtonProps?: IButtonProps

属性值

IButtonProps

继承自 IMessageBarProps.expandButtonProps

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?: FormEventHandler<HTMLElement>

属性值

FormEventHandler<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

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。

onKeyPress?: KeyboardEventHandler<HTMLElement>

属性值

KeyboardEventHandler<HTMLElement>

继承自 IMessageBarProps.onKeyPress

onKeyPressCapture

警告

现已弃用此 API。

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

onPointerEnterCapture

警告

现已弃用此 API。

This event handler was always ignored by React. It was added by mistake to the types.

onPointerEnterCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerEnterCapture

onPointerLeave

onPointerLeave?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerLeave

onPointerLeaveCapture

警告

现已弃用此 API。

This event handler was always ignored by React. It was added by mistake to the types.

onPointerLeaveCapture?: PointerEventHandler<HTMLElement>

属性值

PointerEventHandler<HTMLElement>

继承自 IMessageBarProps.onPointerLeaveCapture

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

placeholder

placeholder?: string

属性值

string

继承自 IMessageBarProps.placeholder

prefix

prefix?: string

属性值

string

继承自 IMessageBarProps.prefix

property

property?: string

属性值

string

继承自 IMessageBarProps.property

radioGroup

radioGroup?: string

属性值

string

继承自 IMessageBarProps.radioGroup

ref

ref?: Ref<HTMLDivElement>

属性值

Ref<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?: "alert" | "none" | "status"

属性值

"alert" | "none" | "status"

继承自 IMessageBarProps.role

security

security?: string

属性值

string

继承自 IMessageBarProps.security

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

主题 (通过 customization.)

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?: "on" | "off"

属性值

"on" | "off"

继承自 IMessageBarProps.unselectable

vocab

vocab?: string

属性值

string

继承自 IMessageBarProps.vocab