NAME
Rose::HTML::Form::Field::TextArea - Object representation of a multi-line text field in an HTML form.
SYNOPSIS
$field =
Rose::HTML::Form::Field::TextArea->new(
label => 'Your Age',
name => 'age',
size => 2,
maxlength => 3);
$age = $field->internal_value;
print $field->html;
...
DESCRIPTION
Rose::HTML::Form::Field::TextArea
is an object representation of a multi-line text field 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.
HTML ATTRIBUTES
Valid attributes:
accesskey
class
cols
dir
disabled
id
lang
name
onblur
onchange
onclick
ondblclick
onfocus
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onselect
readonly
rows
style
tabindex
title
value
xml:lang
Required attributes (default values in parentheses):
cols (50)
rows (6)
Boolean attributes:
checked
disabled
readonly
CONSTRUCTOR
- new PARAMS
-
Constructs a new
Rose::HTML::Form::Field::TextArea
object based on PARAMS, where PARAMS are name/value pairs. Any object method is a valid parameter name.
OBJECT METHODS
- contents [TEXT]
-
Get or set the contents of the text area. If a TEXT argument is present, it is passed to
input_value()
and the return value of that method call is then returned. Otherwise,output_value()
is called with no arguments. - value [TEXT]
-
Simply calls
contents()
, passing all arguments.
AUTHOR
John C. Siracusa (siracusa@mindspring.com)