feat(NativeWindowMac): addTabbedWindow
Add support for the [`NSWindow addTabbedWindow`][nsw] method on MacOSX This plays nicely with the changes from #9052 and #9725 Usage samples available in [this commit][c] in my fork of `electron-quick-start` [nsw]:1855947
-addtabbedwindow [c]:79f06591df
This commit is contained in:
parent
68d35dbeb1
commit
1bb042a661
8 changed files with 46 additions and 0 deletions
|
@ -1401,6 +1401,22 @@ there is more than one tab in the current window.
|
|||
Toggles the visibility of the tab bar if native tabs are enabled and
|
||||
there is only one tab in the current window.
|
||||
|
||||
#### `win.addTabbedWindow(browserWindow)` _macOS_
|
||||
|
||||
* `browserWindow` BrowserWindow
|
||||
|
||||
Adds a window as a tab on this window, after the tab for the window instance.
|
||||
|
||||
```js
|
||||
// in main.js
|
||||
|
||||
BrowserWindow.getFocusedWindow().addTabbedWindow(new BrowserWindow({}))
|
||||
|
||||
// in renderer.js
|
||||
|
||||
remote.getCurrentWindow().addTabbedWindow(new BrowserWindow({}))
|
||||
```
|
||||
|
||||
#### `win.setVibrancy(type)` _macOS_
|
||||
|
||||
* `type` String - Can be `appearance-based`, `light`, `dark`, `titlebar`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue