Commit c5801dc6 by Alexander Makarov

Merge pull request #1061 from nukkumatti/master

Fixes issue #858: Tabs::widget type problem
parents 86c3fff0 a80c2352
......@@ -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';
/**
......@@ -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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment