TbHtml::dropdown PHP 메소드

dropdown() 보호된 정적인 메소드

Generates a dropdown menu.
protected static dropdown ( array $items, array $htmlOptions = [] ) : string
$items array the menu items.
$htmlOptions array additional HTML attributes.
리턴 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