mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Add "active" option
This commit is contained in:
parent
9a8c60c3cf
commit
bbf8835397
|
@ -67,6 +67,7 @@ Add a new tab to the tab group and returns a `Tab` instance.
|
|||
* `closable` (default: `true`): if set to `true` the close button won't be displayed and the user won't be able to close the tab. See also `tab.close()`.
|
||||
* `webviewAttributes`: attributes to add to the webview tag. See [webview documentation](http://electron.atom.io/docs/api/web-view-tag/#tag-attributes).
|
||||
* `visible` (default: `true`): set this to `false` if you don't want to display the tab once it is loaded. If set to `false` then you will need to call `tab.show()` to display the tab.
|
||||
* `active` (default: `false`): set this to `true` if you want to activate the tab once it is loaded. Otherwise you will need to call `tab.activate()`.
|
||||
* `ready`: a callback function to call once the tab is ready. The `Tab` instance is passed as the only parameter.
|
||||
|
||||
#### `tabGroup.getTab(id)`
|
||||
|
|
Loading…
Reference in a new issue