Help you build a tab-based Electron app.
const TabView = require('electron-tabview');
const tabView = new TabView();
Returns TabGroup
- The handler of the tab group in the view.
Returns ActionGroup
- The handler of the action group in the view.
const tabGroup = tabView.getTabGroup();
options
Objecttitle
String (optional, default isnull
) - The tab's title.icon
String (optional, default is empty) - The tab's icon url.url
String - The tab's content url. Provided for the webview.active
Boolean (optional, default isfalse
). If set to true, the tab will be activated once mounted.closable
Boolean (optional, default isfalse
) - Whether the tab is closable.onTabWillMount
Function (optional, default isnull
) - Executed before the tab will mount.onTabDidMount
Function (optional, default isnull
) - Executed after the tab mounted.onTabActivated
Function (optional, default isnull
) - Excuted when the tab is activated.
Returns Tab
- The tab added to the group.