From a80c2352ff69d79891f71162aa78ca53114542e3 Mon Sep 17 00:00:00 2001 From: Gudz Taras Date: Thu, 24 Oct 2013 20:56:52 +0400 Subject: [PATCH] Fixes issue #858: Tabs::widget type problem --- framework/yii/bootstrap/Tabs.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/yii/bootstrap/Tabs.php b/framework/yii/bootstrap/Tabs.php index 653ed68..2e76398 100644 --- a/framework/yii/bootstrap/Tabs.php +++ b/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. */ 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); } /**