Browse Source

Merge pull request #1061 from nukkumatti/master

Fixes issue #858: Tabs::widget type problem
tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
c5801dc659
  1. 6
      framework/yii/bootstrap/Tabs.php

6
framework/yii/bootstrap/Tabs.php

@ -85,6 +85,10 @@ class Tabs extends Widget
* @var boolean whether the labels for header items should be HTML-encoded. * @var boolean whether the labels for header items should be HTML-encoded.
*/ */
public $encodeLabels = true; 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() public function init()
{ {
parent::init(); parent::init();
Html::addCssClass($this->options, 'nav nav-tabs'); Html::addCssClass($this->options, 'nav ' . $this->navType);
} }
/** /**

Loading…
Cancel
Save