|
|
|
@ -169,7 +169,9 @@ class Tabs extends Widget
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Html::addCssClass($linkOptions, ['widget' => 'dropdown-toggle']); |
|
|
|
|
if (!isset($linkOptions['data-toggle'])) { |
|
|
|
|
$linkOptions['data-toggle'] = 'dropdown'; |
|
|
|
|
} |
|
|
|
|
$header = Html::a($label, "#", $linkOptions) . "\n" |
|
|
|
|
. Dropdown::widget(['items' => $item['items'], 'clientOptions' => false, 'view' => $this->getView()]); |
|
|
|
|
} else { |
|
|
|
@ -185,7 +187,9 @@ class Tabs extends Widget
|
|
|
|
|
if (isset($item['url'])) { |
|
|
|
|
$header = Html::a($label, $item['url'], $linkOptions); |
|
|
|
|
} else { |
|
|
|
|
if (!isset($linkOptions['data-toggle'])) { |
|
|
|
|
$linkOptions['data-toggle'] = 'tab'; |
|
|
|
|
} |
|
|
|
|
$header = Html::a($label, '#' . $options['id'], $linkOptions); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -250,8 +254,9 @@ class Tabs extends Widget
|
|
|
|
|
|
|
|
|
|
$options['id'] = ArrayHelper::getValue($options, 'id', $this->options['id'] . '-dd' . $itemNumber . '-tab' . $n); |
|
|
|
|
$item['url'] = '#' . $options['id']; |
|
|
|
|
if (!isset($item['linkOptions']['data-toggle'])) { |
|
|
|
|
$item['linkOptions']['data-toggle'] = 'tab'; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
$panes[] = Html::tag('div', $content, $options); |
|
|
|
|
|
|
|
|
|
unset($item); |
|
|
|
|