IToast interface
Toast Props with metadata to specify how it will be rendered by the service
Properties
call |
Optional text for the Call to Action |
duration | Duration in ms the toast will appear for |
force |
If true, we'll immediately take down any existing toast and display this instead Otherwise, it adds it to an internal queue in the GlobalToast and will display after others in the queue |
message | Message to display on the Toast |
on |
Optional handler for when the Call to Action is clicked |
Property Details
callToAction
Optional text for the Call to Action
callToAction?: string
Property Value
string
duration
Duration in ms the toast will appear for
duration: number
Property Value
number
forceOverrideExisting
If true, we'll immediately take down any existing toast and display this instead Otherwise, it adds it to an internal queue in the GlobalToast and will display after others in the queue
forceOverrideExisting?: boolean
Property Value
boolean
message
Message to display on the Toast
message: string
Property Value
string
onCallToActionClick
Optional handler for when the Call to Action is clicked
onCallToActionClick?: () => void
Property Value
() => void
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈