public static resetInput ( string $label = 'Reset', array $options = [] ) : string | ||
$label | string | the value attribute. If it is null, the value attribute will not be generated. |
$options | array | the attributes of the button tag. The values will be HTML-encoded using [[encode()]]. Attributes whose value is null will be ignored and not put in the tag returned. See [[renderTagAttributes()]] for details on how attributes are being rendered. |
return | string | the generated button tag |
public static function resetInput($label = 'Reset', $options = [])
{
$options['type'] = 'reset';
$options['value'] = $label;
return static::tag('input', '', $options);
}