*`newTabButtonText` (default: `"+"`): "New Tab" button text.
*`newTab` (default: `undefined`): arguments to use when `.addTab()` is called without parameters. It can be an object or a function which returns an object. It determines the options to use when the "New Tab" button is triggered. If you leave it undefined then the "New Tab" button won't be displayed.
*`ready` (default: `undefined`): a callback function to call once the tab group is ready. The `TabGroup` instance is passed as the only parameter.
#### `tabGroup.addTab(options)`
Add a new tab to the tab group and returns a `Tab` instance.
*`title`: tab title.
*`src`: URL to the page which will be loaded into the view. This is actually the same than `options.webview.src`.
*`iconURL`: optional URL to the tab icon.
*`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: `false`): set this to `true` if you want to display the tab once it is loaded. Otherwise you will need to call `tab.show()`.
*`ready`: a callback function to call once the tab is ready. The `Tab` instance is passed as the only parameter.
#### `tabGroup.getTab(id)`
Retrieve an instance of `Tab` from its `id` (return `null` if not found).
#### `tabGroup.getActiveTab()`
Return the currently active tab (otherwise return `null`).
### Tab
Instances of `Tab` are returned by the `tabGroup.addTab()` method.
#### `tab.setTitle(title)`
Set tab title.
#### `tab.getTitle()`
Get current tab title.
#### `tab.setIcon(iconURL)`
Set tab icon (an URL must be given).
#### `tab.getIcon()`
Get current tab icon URL.
#### `tab.activate()`
Activate this tab. The class "active" is added to the active tab.
#### `tab.show(flag)`
Toggle the "visible" class on the tab. `tab.hide()` is an alias to `tab.show(false)`.
#### `tab.flash(flag)`
Toggle the "flash" class on the tab. `tab.unflash()` is an alias to `tab.flash(false)`.
#### `tab.close(force)`
Close the tab (and activate another tab if relevant). When `force` is set to `true` the tab will be closed even if it is not `closable`.
### Access webview element
You can access the webview element and use its methods with through the `Tab.webview` attribute. See [webview documentation](http://electron.atom.io/docs/api/web-view-tag/#methods).