Skip to main content

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