function Tab(element, options) {
      var _this;

      _classCallCheck(this, Tab);

      _this = _possibleConstructorReturn(this, _getPrototypeOf(Tab).call(this, element, options));

      _this.manage(on(_this.element, 'keydown', function (event) {
        _this._handleKeyDown(event);
      }));

      var selected = _this.element.querySelector(_this.options.selectorButtonSelected);

      if (selected) {
        _this._updateTriggerText(selected);
      }

      return _this;
    }
/**
     * Container of tabs.
     * @extends ContentSwitcher
     * @param {HTMLElement} element The element working as a container of tabs.
     * @param {Object} [options] The component options.
     * @param {string} [options.selectorMenu] The CSS selector to find the drop down menu used in narrow mode.
     * @param {string} [options.selectorTrigger] The CSS selector to find the button to open the drop down menu used in narrow mode.
     * @param {string} [options.selectorTriggerText]
     *   The CSS selector to find the element used in narrow mode showing the selected tab item.
     * @param {string} [options.selectorButton] The CSS selector to find tab containers.
     * @param {string} [options.selectorButtonSelected] The CSS selector to find the selected tab.
     * @param {string} [options.selectorLink] The CSS selector to find the links in tabs.
     * @param {string} [options.classActive] The CSS class for tab's selected state.
     * @param {string} [options.classHidden] The CSS class for the drop down menu's hidden state used in narrow mode.
     * @param {string} [options.eventBeforeSelected]
     *   The name of the custom event fired before a tab is selected.
     *   Cancellation of this event stops selection of tab.
     * @param {string} [options.eventAfterSelected] The name of the custom event fired after a tab is selected.
     */
Container of tabs.
@extends ContentSwitcher
@param {HTMLElement} element The element working as a container of tabs.
@param {Object} [options] The component options.
@param {string} [options.selectorMenu] The CSS selector to find the drop down menu used in narrow mode.
@param {string} [options.selectorTrigger] The CSS selector to find the button to open the drop down menu used in narrow mode.
@param {string} [options.selectorTriggerText]
The CSS selector to find the element used in narrow mode showing the selected tab item.
@param {string} [options.selectorButton] The CSS selector to find tab containers.
@param {string} [options.selectorButtonSelected] The CSS selector to find the selected tab.
@param {string} [options.selectorLink] The CSS selector to find the links in tabs.
@param {string} [options.classActive] The CSS class for tab's selected state.
@param {string} [options.classHidden] The CSS class for the drop down menu's hidden state used in narrow mode.
@param {string} [options.eventBeforeSelected]
The name of the custom event fired before a tab is selected.
Cancellation of this event stops selection of tab.
@param {string} [options.eventAfterSelected] The name of the custom event fired after a tab is selected.
Container of tabs . @extends ContentSwitcher @param { HTMLElement } element The element working as a container of tabs . @param { Object } [ options ] The component options . @param { string } [ options . selectorMenu ] The CSS selector to find the drop down menu used in narrow mode . @param { string } [ options . selectorTrigger ] The CSS selector to find the button to open the drop down menu used in narrow mode . @param { string } [ options . selectorTriggerText ] The CSS selector to find the element used in narrow mode showing the selected tab item . @param { string } [ options . selectorButton ] The CSS selector to find tab containers . @param { string } [ options . selectorButtonSelected ] The CSS selector to find the selected tab . @param { string } [ options . selectorLink ] The CSS selector to find the links in tabs . @param { string } [ options . classActive ] The CSS class for tab ' s selected state . @param { string } [ options . classHidden ] The CSS class for the drop down menu ' s hidden state used in narrow mode . @param { string } [ options . eventBeforeSelected ] The name of the custom event fired before a tab is selected . Cancellation of this event stops selection of tab . @param { string } [ options . eventAfterSelected ] The name of the custom event fired after a tab is selected .
function Tab(element, options) {
      var _this;
      _classCallCheck(this, Tab);
      _this = _possibleConstructorReturn(this, _getPrototypeOf(Tab).call(this, element, options));
      _this.manage(on(_this.element, 'keydown', function (event) {
        _this._handleKeyDown(event);
      }));
      var selected = _this.element.querySelector(_this.options.selectorButtonSelected);
      if (selected) {
        _this._updateTriggerText(selected);
      }
      return _this;
    }
function Tab ( element , options ) { var _this ; _classCallCheck ( this , Tab ) ; _this = _possibleConstructorReturn ( this , _getPrototypeOf ( Tab ) . call ( this , element , options ) ) ; _this . manage ( on ( _this . element , 'keydown' , function ( event ) { _this . _handleKeyDown ( event ) ; } ) ) ; var selected = _this . element . querySelector ( _this . options . selectorButtonSelected ) ; if ( selected ) { _this . _updateTriggerText ( selected ) ; } return _this ; }
Container of tabs.
Container of tabs .