macgyer\yii2materializecss\widgets\Nav::renderDropdown PHP Method

renderDropdown() protected method

This method is called to create sub-menus.
See also: http://materializecss.com/navbar.html#navbar-dropdown
Since: 2.0.1
protected renderDropdown ( array $items, array $parentItem, string $targetId ) : string
$items array the given items. Please refer to [[Dropdown::items]] for the array structure.
$parentItem array the parent item information. Please refer to [[items]] for the structure of this array.
$targetId string the dropdown id
return string the rendering result.
    protected function renderDropdown($items, $parentItem, $targetId)
    {
        return Dropdown::widget(['toggleTarget' => $targetId, 'options' => ArrayHelper::getValue($parentItem, 'dropDownOptions', []), 'items' => $items, 'encodeLabels' => $this->encodeLabels, 'clientOptions' => false, 'view' => $this->getView()]);
    }