mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Documentation update (getTabById -> getTab)
This commit is contained in:
parent
f1ef5f790c
commit
083d70cb3c
|
@ -86,11 +86,7 @@ Add a new tab to the tab group and returns a `Tab` instance.
|
||||||
* `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()`.
|
* `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.
|
* `ready`: a callback function to call once the tab is ready. The `Tab` instance is passed as the only parameter.
|
||||||
|
|
||||||
#### `tabGroup.getTab(id, idIsPosition)`
|
#### `tabGroup.getTab(id)`
|
||||||
|
|
||||||
If `idIsPosition` is true `id` is passed to `tabGroup.getTabByPosition`. Otherwise, `id` is passed to `tabGroup.getTabById`.
|
|
||||||
|
|
||||||
#### `tabGroup.getTabById(id)`
|
|
||||||
|
|
||||||
Retrieve an instance of `Tab` from this `id` (return `null` if not found).
|
Retrieve an instance of `Tab` from this `id` (return `null` if not found).
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue