showNotification
FitFileViewer - API Documentation v29.9.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:123
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. Default is 'error'
"error" | "info" | "success" | "warning"
timeout?β
number = 5000
Duration in milliseconds before the
notification disappears. Set to 0 to keep it visible. Default is 5000
Returnsβ
void