Skip to main content

attachRecentFilesContextMenu

FitFileViewer - API Documentation v29.8.0


FitFileViewer - API Documentation / utils/app/lifecycle/recentFilesContextMenu / attachRecentFilesContextMenu

Function: attachRecentFilesContextMenu()

attachRecentFilesContextMenu(params: { openFileBtn: HTMLButtonElement; setLoading: (isLoading: boolean) => void; showNotification: (message: string, type?: string, durationMs?: number) => void; }): void

Defined in: utils/app/lifecycle/recentFilesContextMenu.js:17

Attach the β€œRecent Files” context menu behavior to the Open File button.

This function intentionally preserves the original behavior (including debug logging) because the menu behavior is heavily covered by strict tests.

Parameters​

params​

openFileBtn​

HTMLButtonElement

setLoading​

(isLoading: boolean) => void

showNotification​

(message: string, type?: string, durationMs?: number) => void

Returns​

void