Skip to content

Commit

Permalink
Merge pull request yiisoft#1061 from nukkumatti/master
Browse files Browse the repository at this point in the history
Fixes issue yiisoft#858: Tabs::widget type problem
  • Loading branch information
samdark committed Oct 24, 2013
2 parents 86c3fff + a80c235 commit c5801dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion framework/yii/bootstrap/Tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ class Tabs extends Widget
* @var boolean whether the labels for header items should be HTML-encoded.
*/
public $encodeLabels = true;
/**
* @var string, specifies the Bootstrap tab styling.
*/
public $navType = 'nav-tabs';


/**
Expand All @@ -93,7 +97,7 @@ class Tabs extends Widget
public function init()
{
parent::init();
Html::addCssClass($this->options, 'nav nav-tabs');
Html::addCssClass($this->options, 'nav ' . $this->navType);
}

/**
Expand Down

0 comments on commit c5801dc

Please sign in to comment.