Skip to content

Commit

Permalink
chore: update ref to docs (🤖)
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent f769255 commit fc2c6b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/latest/.sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0af5ec37583a557092294dc4ccc432f6eafc5003
4062d1827092bfa7ea2eb27b87aa051c89f49425
10 changes: 5 additions & 5 deletions docs/latest/api/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ The `menu` object has the following instance methods:
#### `menu.popup([options])`

* `options` Object (optional)
* `window` [BrowserWindow](latest/api/browser-window.md) (optional) - Default is the focused window.
* `window` [BaseWindow](latest/api/base-window.md) (optional) - Default is the focused window.
* `x` number (optional) - Default is the current mouse cursor position.
Must be declared if `y` is declared.
* `y` number (optional) - Default is the current mouse cursor position.
Expand All @@ -93,13 +93,13 @@ The `menu` object has the following instance methods:
Can be `none`, `mouse`, `keyboard`, `touch`, `touchMenu`, `longPress`, `longTap`, `touchHandle`, `stylus`, `adjustSelection`, or `adjustSelectionReset`.
* `callback` Function (optional) - Called when menu is closed.

Pops up this menu as a context menu in the [`BrowserWindow`](latest/api/browser-window.md).
Pops up this menu as a context menu in the [`BaseWindow`](latest/api/base-window.md).

#### `menu.closePopup([browserWindow])`
#### `menu.closePopup([window])`

* `browserWindow` [BrowserWindow](latest/api/browser-window.md) (optional) - Default is the focused window.
* `window` [BaseWindow](latest/api/base-window.md) (optional) - Default is the focused window.

Closes the context menu in the `browserWindow`.
Closes the context menu in the `window`.

#### `menu.append(menuItem)`

Expand Down

0 comments on commit fc2c6b5

Please sign in to comment.