TbHtml::dropdownToggle PHP Method

dropdownToggle() protected static method

Generates a dropdown toggle element.
protected static dropdownToggle ( string $type, string $label, array $htmlOptions ) : string
$type string the type of dropdown.
$label string the element text.
$htmlOptions array additional HTML attributes.
return string the generated element.
    protected static function dropdownToggle($type, $label, $htmlOptions)
    {
        self::addCssClass('dropdown-toggle', $htmlOptions);
        $label .= ' <b class="caret"></b>';
        $htmlOptions['data-toggle'] = 'dropdown';
        return self::btn($type, $label, $htmlOptions);
    }
TbHtml