export=
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/app/menu/createAppMenu / export=
Variable: export=
constexport=: {createAppMenu: (mainWindow:BrowserWindow,currentTheme?:string,loadedFitFilePath?:string|null) =>void; }
Defined in: utils/app/menu/createAppMenu.js:865
Type Declarationβ
createAppMenu()β
createAppMenu: (
mainWindow:BrowserWindow,currentTheme?:string,loadedFitFilePath?:string|null) =>void
Builds and sets the application menu for the Electron app. The menu includes File, Edit, View, Window, and Settings menus, with support for opening files, displaying a list of recent files, and standard menu roles.
Parametersβ
mainWindowβ
BrowserWindow
The main application window to which menu actions are dispatched.
currentTheme?β
string
The current theme of the application, used to set the checked state of theme radio buttons.
loadedFitFilePath?β
The path of the loaded FIT file, used to enable/disable the Summary Columns menu item.
string | null
Returnsβ
void