共用方式為


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

屬性值