mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 01:30:23 +08:00
Fixes issue #858: Tabs::widget type problem
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user