mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Change "+" and "x" default symbols
This commit is contained in:
parent
c1eda03445
commit
6cd6bec073
|
@ -52,8 +52,8 @@ Represents the main tab container.
|
||||||
* `viewContainerSelector` (default: `".etabs-views"`): CSS selector to target the element where the view are inserted.
|
* `viewContainerSelector` (default: `".etabs-views"`): CSS selector to target the element where the view are inserted.
|
||||||
* `tabClass` (default: `"etabs-tab"`): class to add to tab elements.
|
* `tabClass` (default: `"etabs-tab"`): class to add to tab elements.
|
||||||
* `viewClass` (default: `"etabs-view"`): class to add to webview elements.
|
* `viewClass` (default: `"etabs-view"`): class to add to webview elements.
|
||||||
* `closeButtonText` (default: `"❌"`): "close tab" button text.
|
* `closeButtonText` (default: `"✖"`): "close tab" button text.
|
||||||
* `newTabButtonText` (default: `"+"`): "New Tab" button text.
|
* `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.
|
* `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.
|
* `ready` (default: `undefined`): a callback function to call once the tab group is ready. The `TabGroup` instance is passed as the only parameter.
|
||||||
|
|
||||||
|
|
4
index.js
4
index.js
|
@ -36,9 +36,9 @@ class TabGroup extends EventEmitter {
|
||||||
viewContainerSelector: args.viewContainerSelector || ".etabs-views",
|
viewContainerSelector: args.viewContainerSelector || ".etabs-views",
|
||||||
tabClass: args.tabClass || "etabs-tab",
|
tabClass: args.tabClass || "etabs-tab",
|
||||||
viewClass: args.viewClass || "etabs-view",
|
viewClass: args.viewClass || "etabs-view",
|
||||||
closeButtonText: args.closeButtonText || "❌",
|
closeButtonText: args.closeButtonText || "✖",
|
||||||
newTab: args.newTab,
|
newTab: args.newTab,
|
||||||
newTabButtonText: args.newTabButton || "+",
|
newTabButtonText: args.newTabButton || "+",
|
||||||
ready: args.ready
|
ready: args.ready
|
||||||
};
|
};
|
||||||
this.tabContainer = document.querySelector(options.tabContainerSelector);
|
this.tabContainer = document.querySelector(options.tabContainerSelector);
|
||||||
|
|
Loading…
Reference in a new issue