|
|
@ -87,10 +87,8 @@ class Dropdown extends Widget |
|
|
|
$linkOptions['tabindex'] = '-1'; |
|
|
|
$linkOptions['tabindex'] = '-1'; |
|
|
|
$content = Html::a($label, ArrayHelper::getValue($item, 'url', '#'), $linkOptions); |
|
|
|
$content = Html::a($label, ArrayHelper::getValue($item, 'url', '#'), $linkOptions); |
|
|
|
if (!empty($item['items'])) { |
|
|
|
if (!empty($item['items'])) { |
|
|
|
$content .= static::widget([ |
|
|
|
unset($this->options['id']); |
|
|
|
'items' => $item['items'], |
|
|
|
$this->renderItems($item['items']); |
|
|
|
'encodeLabels' => $this->encodeLabels, |
|
|
|
|
|
|
|
]); |
|
|
|
|
|
|
|
Html::addCssClass($options, 'dropdown-submenu'); |
|
|
|
Html::addCssClass($options, 'dropdown-submenu'); |
|
|
|
} |
|
|
|
} |
|
|
|
$lines[] = Html::tag('li', $content, $options); |
|
|
|
$lines[] = Html::tag('li', $content, $options); |
|
|
|