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