Rose::HTML::Form::Field::Submit - Object representation of a submit button in an HTML form.
$field = Rose::HTML::Form::Field::Submit->new(name => 'run', value => 'Do it!'); print $field->html; # or... print $field->image_html(src => 'images/run_button.gif'); ...
Rose::HTML::Form::Field::Submit is an object representation of a submit button in an HTML form.
This class inherits from, and follows the conventions of, Rose::HTML::Form::Field. Inherited methods that are not overridden will not be documented a second time here. See the Rose::HTML::Form::Field documentation for more information.
Valid attributes:
accept accesskey alt checked class dir disabled id ismap lang maxlength name onblur onchange onclick ondblclick onfocus onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup onselect readonly size src style tabindex title type usemap value xml:lang
Required attributes (default values in parentheses):
name type (submit)
Boolean attributes:
checked disabled ismap readonly
Constructs a new Rose::HTML::Form::Field::Submit object based on PARAMS, where PARAMS are name/value pairs. Any object method is a valid parameter name.
Returns the HTML serialization of the submit button using an image instead of a standard button widget (in other words, type="image"). ARGS is a list of HTML attribute name/value pairs which are temporarily set, then backed out before the method returns. (The type="image" change is also backed out.)
The "src" HTML attribute must be set (either in ARGS or from an existing value for that attribute) or a fatal error will occur.
Like image_html(), but serialized to XHTML instead.
Returns true.
Gets or sets the value of the "value" HTML attribute.
Returns true if this submit button was pressed, false otherwise.
John C. Siracusa (siracusa@gmail.com)
Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Rose::HTML::Objects, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rose::HTML::Objects
CPAN shell
perl -MCPAN -e shell install Rose::HTML::Objects
For more information on module installation, please visit the detailed CPAN module installation guide.