|
|
@ -124,11 +124,11 @@ class Tabs extends Widget |
|
|
|
* @since 2.0.7 |
|
|
|
* @since 2.0.7 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public $tabContentOptions = []; |
|
|
|
public $tabContentOptions = []; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* @var string name of a class to use for rendering dropdowns withing this widget. Defaults to [[Dropdown]]. |
|
|
|
* @var string name of a class to use for rendering dropdowns withing this widget. Defaults to [[Dropdown]]. |
|
|
|
* @since 2.0.7 |
|
|
|
* @since 2.0.7 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public $dropdownClass = 'yii\bootstrap\Dropdown'; |
|
|
|
public $dropdownClass = 'yii\bootstrap\Dropdown'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -188,8 +188,8 @@ class Tabs extends Widget |
|
|
|
if (!isset($linkOptions['data-toggle'])) { |
|
|
|
if (!isset($linkOptions['data-toggle'])) { |
|
|
|
$linkOptions['data-toggle'] = 'dropdown'; |
|
|
|
$linkOptions['data-toggle'] = 'dropdown'; |
|
|
|
} |
|
|
|
} |
|
|
|
/** @var Widget $dropdownClass */ |
|
|
|
/** @var Widget $dropdownClass */ |
|
|
|
$dropdownClass = $this->dropdownClass; |
|
|
|
$dropdownClass = $this->dropdownClass; |
|
|
|
$header = Html::a($label, "#", $linkOptions) . "\n" |
|
|
|
$header = Html::a($label, "#", $linkOptions) . "\n" |
|
|
|
. $dropdownClass::widget(['items' => $item['items'], 'clientOptions' => false, 'view' => $this->getView()]); |
|
|
|
. $dropdownClass::widget(['items' => $item['items'], 'clientOptions' => false, 'view' => $this->getView()]); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|