Change "+" and "x" default symbols

This commit is contained in:
Thomas Brouard 2016-11-02 14:48:08 +01:00
parent c1eda03445
commit 6cd6bec073
2 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -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);