|
|
@ -63,6 +63,7 @@ class Nav extends Widget |
|
|
|
* - linkOptions: array, optional, the HTML attributes of the item's link. |
|
|
|
* - linkOptions: array, optional, the HTML attributes of the item's link. |
|
|
|
* - options: array, optional, the HTML attributes of the item container (LI). |
|
|
|
* - options: array, optional, the HTML attributes of the item container (LI). |
|
|
|
* - active: boolean, optional, whether the item should be on active state or not. |
|
|
|
* - active: boolean, optional, whether the item should be on active state or not. |
|
|
|
|
|
|
|
* - dropDownOptions: array, optional, the HTML options that will passed to the [[Dropdown]] widget. |
|
|
|
* - items: array|string, optional, the configuration array for creating a [[Dropdown]] widget, |
|
|
|
* - items: array|string, optional, the configuration array for creating a [[Dropdown]] widget, |
|
|
|
* or a string representing the dropdown menu. Note that Bootstrap does not support sub-dropdown menus. |
|
|
|
* or a string representing the dropdown menu. Note that Bootstrap does not support sub-dropdown menus. |
|
|
|
* |
|
|
|
* |
|
|
@ -208,6 +209,7 @@ class Nav extends Widget |
|
|
|
protected function renderDropdown($items, $parentItem) |
|
|
|
protected function renderDropdown($items, $parentItem) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return Dropdown::widget([ |
|
|
|
return Dropdown::widget([ |
|
|
|
|
|
|
|
'options' => ArrayHelper::getValue($parentItem, 'dropDownOptions', []), |
|
|
|
'items' => $items, |
|
|
|
'items' => $items, |
|
|
|
'encodeLabels' => $this->encodeLabels, |
|
|
|
'encodeLabels' => $this->encodeLabels, |
|
|
|
'clientOptions' => false, |
|
|
|
'clientOptions' => false, |
|
|
|