src/tabs.js
// Function to run when tabs are first init (sets one active over others)
Function to run when tabs are first init (sets one active over others)
Function to run when tabs are first init ( sets one active over others )
_init(checkStyleMatch) {
    if (checkStyleMatch) {
      const currentStyle = this._getTabStyle();
      if (this.previousStyle == currentStyle) {
        return;
      }
      this.previousStyle = currentStyle;
    }
    const hash = window.location.hash || `#${this.defaultTab.id}`;
    const currentTab = hash ? `a[href="${hash}"]` : '[data-tab-link]:first';
    for (let i = 0; i < this.$tabToggles.length; i++) {
      this.options.toggleTab(this.$tabToggles.get(i), false);
    }
    for (let i = 0; i < this.$tabContents.length; i++) {
      this._defaultToggleContent(this.$tabContents.get(i), false);
    }
    this._defaultToggleContent(hash, true);
    this.options.toggleTab(currentTab, true);
  }
_init ( checkStyleMatch ) { if ( checkStyleMatch ) { const currentStyle = this . _getTabStyle ( ) ; if ( this . previousStyle == currentStyle ) { return ; } this . previousStyle = currentStyle ; } const hash = window . location . hash || ` ${ this . defaultTab . id } ` ; const currentTab = hash ? ` ${ hash } ` : '[data-tab-link]:first' ; for ( let i = 0 ; i < this . $tabToggles . length ; i ++ ) { this . options . toggleTab ( this . $tabToggles . get ( i ) , false ) ; } for ( let i = 0 ; i < this . $tabContents . length ; i ++ ) { this . _defaultToggleContent ( this . $tabContents . get ( i ) , false ) ; } this . _defaultToggleContent ( hash , true ) ; this . options . toggleTab ( currentTab , true ) ; }
Function to run when tabs are first init (sets one active over others)
Function to run when tabs are first init ( sets one active over others )
// Disable all the tabs