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