From 6cd6bec0734977eeb1fc47a89872d24212117976 Mon Sep 17 00:00:00 2001 From: Thomas Brouard Date: Wed, 2 Nov 2016 14:48:08 +0100 Subject: [PATCH] Change "+" and "x" default symbols --- README.md | 4 ++-- index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 97a76e2..444e6e6 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/index.js b/index.js index cd3b4f2..23f7d9e 100644 --- a/index.js +++ b/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);