---
name: "HTML::Widget::Element::Button"
section: "3pm"
platform: "linux"
package: "libhtml-widget-perl"
version: "1.11-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTML::Widget::Element::Button"
---

# HTML::Widget::Element::Button(3pm)

Button Element

## NAME

HTML::Widget::Element::Button - Button Element

## SYNOPSIS

```
    $e = $widget->element( 'Button', 'foo' );
    $e->value('bar');
```

## DESCRIPTION

Button Element.

## METHODS

### new

### value

### label

The value of this Button element. Is also used by the browser as the  button label.

"label" is an alias for "value".

### content

If set, the element will use a `"button"` tag rather than an `"input"`  tag.

The value of `"content"` will be used between the `"button"` tags, unescaped. This means that any html markup may be used to display the button.

### type

Valid values are `"button"`, `"submit"`, `"reset"` and `"image"`.

### src

If set, the element will be rendered as an image button, using this url as  the image.

Automatically sets "type" to `"image"`.

### retain\_default

If true, overrides the default behaviour, so that after a field is missing  from the form submission, the xml output will contain the default value,  rather than be empty.

### render

### containerize

## SEE ALSO

HTML::Widget::Element

## AUTHOR

Marcus Ramberg, `"mramberg@cpan.org"`

## LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
