Renderer Module
Functions and values
| Function or value | Description |
|
|
|
|
Full Usage:
attachMenusAndKeyShortcuts dispatch
Parameters:
Msg -> unit
Returns: IDisposable
|
|
|
The only Electron menu Issie still has, and only in debug builds. Nothing here carries an accelerator, and nothing here should. Electron registers a menu item's accelerator globally and unconditionally, which is why the Sheet, Edit and View menus had to go: they took the key before anything could ask whether it made sense in that context. A menu with no accelerators takes nothing, so it can coexist with KeyBindings. Everything users need from the old menus is on the renderer's own menu bar - Project, Sheets, Edit and View in TopMenuView - or in a context menu.
|
Full Usage:
getUserAppDir ()
Parameters:
unit
Returns: string
|
|
|
|
Full Usage:
isMac
Returns: bool
|
|
Full Usage:
makeCondItem cond label accelerator action
Parameters:
bool
label : string
accelerator : string option
action : KeyboardEvent -> unit
Returns: MenuItemConstructorOptions
|
|
Full Usage:
makeCondRoleItem cond label accelerator role
Parameters:
bool
label : string
accelerator : string option
role : MenuItemRole
Returns: MenuItemConstructorOptions
|
|
Full Usage:
makeDebugItem label accelerator option
Parameters:
string
accelerator : string option
option : KeyboardEvent -> unit
Returns: MenuItemConstructorOptions
|
|
Full Usage:
makeElmItem label accelerator action
Parameters:
string
accelerator : string
action : unit -> unit
Returns: MenuItemConstructorOptions
|
|
Full Usage:
makeItem label accelerator iAction
Parameters:
string
accelerator : string option
iAction : KeyboardEvent -> unit
Returns: MenuItemConstructorOptions
|
|
Full Usage:
makeMenu topLevel name table
Parameters:
bool
name : string
table : MenuItemConstructorOptions list
Returns: MenuItemConstructorOptions
|
|
Full Usage:
makeMenuGen visible topLevel name table
Parameters:
bool
topLevel : bool
name : string
table : MenuItemConstructorOptions list
Returns: MenuItemConstructorOptions
|
|
Full Usage:
makeRoleItem label accelerator role
Parameters:
string
accelerator : string option
role : MenuItemRole
Returns: MenuItemConstructorOptions
|
|
Full Usage:
makeWinDebugItem label accelerator option
Parameters:
string
accelerator : string option
option : KeyboardEvent -> unit
Returns: MenuItemConstructorOptions
|
|
|
|
Full Usage:
runMenuAction id
Parameters:
string
|
|
Full Usage:
softInitialise model dispatch
Parameters:
'a
dispatch : 'b
|
|
|
|
|
|
|
|