TbHtml::dropdown PHP Method

dropdown() protected static method

Generates a dropdown menu.
protected static dropdown ( array $items, array $htmlOptions = [] ) : string
$items array the menu items.
$htmlOptions array additional HTML attributes.
return string the generated menu.
    protected static function dropdown($items, $htmlOptions = array())
    {
        TbArray::defaultValue('role', 'menu', $htmlOptions);
        self::addCssClass('dropdown-menu', $htmlOptions);
        return self::menu($items, $htmlOptions);
    }
TbHtml