PopupOptions
Properties
Link copied to clipboard
Provide the relevant frame if you want certain OS-level features such as Writing Tools on macOS to function correctly. Typically, this should be params.frame
from the context-menu
event on a WebContents, or the focusedFrame
property of a WebContents.
Link copied to clipboard
The index of the menu item to be positioned under the mouse cursor at the specified coordinates. Default is -1.
Link copied to clipboard
This should map to the menuSourceType
provided by the context-menu
event. It is not recommended to set this value manually, only provide values you receive from other APIs or leave it undefined
. Can be none
, mouse
, keyboard
, touch
, touchMenu
, longPress
, longTap
, touchHandle
, stylus
, adjustSelection
, or adjustSelectionReset
.
Link copied to clipboard
Default is the focused window.