Change "+" and "x" default symbols
This commit is contained in:
parent
c1eda03445
commit
6cd6bec073
2 changed files with 4 additions and 4 deletions
|
@ -52,8 +52,8 @@ Represents the main tab container.
|
|||
* `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.
|
||||
* `viewClass` (default: `"etabs-view"`): class to add to webview elements.
|
||||
* `closeButtonText` (default: `"❌"`): "close tab" button text.
|
||||
* `newTabButtonText` (default: `"+"`): "New Tab" button text.
|
||||
* `closeButtonText` (default: `"✖"`): "close 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.
|
||||
* `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",
|
||||
tabClass: args.tabClass || "etabs-tab",
|
||||
viewClass: args.viewClass || "etabs-view",
|
||||
closeButtonText: args.closeButtonText || "❌",
|
||||
closeButtonText: args.closeButtonText || "✖",
|
||||
newTab: args.newTab,
|
||||
newTabButtonText: args.newTabButton || "+",
|
||||
newTabButtonText: args.newTabButton || "+",
|
||||
ready: args.ready
|
||||
};
|
||||
this.tabContainer = document.querySelector(options.tabContainerSelector);
|
||||
|
|
Loading…
Reference in a new issue