| HTML-Widget documentation | Contained in the HTML-Widget distribution. |
HTML::Widget::Element::Submit - Submit Element
$e = $widget->element( 'Submit', 'foo' );
$e->value('bar');
Submit button element.
Inherits all methods from HTML::Widget::Element::Button.
Automatically sets type to submit.
Sets the form field value. Is also used by the browser as the button label.
If not set, the browser will usually display the label as "Submit".
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.
Sebastian Riedel, sri@oook.de
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
| HTML-Widget documentation | Contained in the HTML-Widget distribution. |
package HTML::Widget::Element::Submit; use warnings; use strict; use base 'HTML::Widget::Element::Button'; use NEXT;
sub new { return shift->NEXT::new(@_)->type('submit'); }
1;