通过


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

NotificationProps interface

通知的 props 中。

属性

ariaLive

Aria-live 属性。

autoDismiss

如果设置,通知将在 5 秒后自动关闭

notificationIconProps

通知栏图标;

notificationStrings

通知栏字符串;

onClickLink

可选回调,为用户提供进一步的故障排除步骤或通知的更多信息。

onClickPrimaryButton

点击通知栏内的主按钮时调用的回调。

onClickSecondaryButton

点击通知栏内的辅助按钮时调用的回调。

onDismiss

通知关闭时调用的回调。

role

通知栏的 Role html 属性。

showStackedEffect

如果设置,通知将以堆叠效果显示

styles

来电通知的样式。

属性详细信息

ariaLive

Aria-live 属性。

ariaLive?: "assertive" | "off" | "polite"

属性值

"assertive" | "off" | "polite"

autoDismiss

如果设置,通知将在 5 秒后自动关闭

autoDismiss?: boolean

属性值

boolean

notificationIconProps

通知栏图标;

notificationIconProps?: IIconProps

属性值

IIconProps

notificationStrings

通知栏字符串;

notificationStrings?: NotificationStrings

属性值

可选回调,为用户提供进一步的故障排除步骤或通知的更多信息。

onClickLink?: () => void

属性值

() => void

onClickPrimaryButton

点击通知栏内的主按钮时调用的回调。

onClickPrimaryButton?: () => void

属性值

() => void

onClickSecondaryButton

点击通知栏内的辅助按钮时调用的回调。

onClickSecondaryButton?: () => void

属性值

() => void

onDismiss

通知关闭时调用的回调。

onDismiss?: () => void

属性值

() => void

role

通知栏的 Role html 属性。

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

属性值

"none" | "alert" | "presentation" | "status"

showStackedEffect

如果设置,通知将以堆叠效果显示

showStackedEffect?: boolean

属性值

boolean

styles

来电通知的样式。

styles?: NotificationStyles

属性值