src/Tabs.php
protected function addTabMenuItem($name)
    {
        if (is_object($name)) {
            $tab = $name;
        } else {
            $tab = new Tab($name);
        }

        $tab = $this->add([$tab, 'class' => ['item']], 'Menu')
            ->setElement('a')
            ->setAttr('data-tab', $tab->name);

        if (empty($this->activeTabName)) {
            $this->activeTabName = $tab->name;
        }

        return $tab;
    }
protected function addTabMenuItem($name)
    {
        if (is_object($name)) {
            $tab = $name;
        } else {
            $tab = new Tab($name);
        }

        $tab = $this->add([$tab, 'class' => ['item']], 'Menu')
            ->setElement('a')
            ->setAttr('data-tab', $tab->name);

        if (empty($this->activeTabName)) {
            $this->activeTabName = $tab->name;
        }

        return $tab;
    }
protected function addTabMenuItem ( $ name ) { if ( is_object ( $ name ) ) { $ tab = $ name ; } else { $ tab = new Tab ( $ name ) ; } $ tab = $ this -> add ( [ $ tab , 'class' => [ 'item' ] ] , 'Menu' ) -> setElement ( 'a' ) -> setAttr ( 'data-tab' , $ tab -> name ) ; if ( empty ( $ this -> activeTabName ) ) { $ this -> activeTabName = $ tab -> name ; } return $ tab ; }
Add a tab menu item.

@param string|Tab $name Name of tab or Tab object.

@throws Exception

@return Tab|View Tab menu item view.
Add a tab menu item .