Skip to main content

attachRecentFilesContextMenu

FitFileViewer - API Documentation v30.0.1


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

Function: attachRecentFilesContextMenu()

attachRecentFilesContextMenu(params: AttachRecentFilesContextMenuParams): () => void

Defined in: utils/app/lifecycle/recentFilesContextMenu.ts:91

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​

AttachRecentFilesContextMenuParams

Dependencies for wiring the context menu.

Returns​

A cleanup callback that detaches the root listener.

() => void