showNotification
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/app/initialization/rendererUtils / showNotification
Function: showNotification()
showNotification(
message:string,type?:"error"|"info"|"success"|"warning",timeout?:number):void
Defined in: utils/app/initialization/rendererUtils.js:105
Displays a notification message in the UI with state tracking.
Parametersβ
messageβ
string
The message to display in the notification.
type?β
The type of notification, which determines its styling.
"error" | "info" | "success" | "warning"
timeout?β
number = 5000
Duration in milliseconds before the notification disappears. Set to 0 to keep it visible.
Returnsβ
void