ShareMenu
For including the share menu as a submenu of other menus, please use the shareMenu
role of MenuItem.
Process:
- SharingItem - The item to share.
Instance Methods
The shareMenu
object has the following instance methods:
shareMenu.popup([options])
options
PopupOptions (optional)x
Number (optional) - Default is the current mouse cursor position. Must be declared if is declared.y
Number (optional) - Default is the current mouse cursor position. Must be declared ifx
is declared.positioningItem
Number (optional) macOS - The index of the menu item to be positioned under the mouse cursor at the specified coordinates. Default is -1.
shareMenu.closePopup([browserWindow])
- (optional) - Default is the focused window.
Closes the context menu in the browserWindow
.