HTML::Widget::Result - Result Class
see HTML::Widget
Result Class.
Contains the form action.
Returns xml.
Contains the container tag.
Contains the form encoding type.
Returns a list of HTML::Widget::Error objects.
my @errors = $form->errors; my @errors = $form->errors('foo'); my @errors = $form->errors( 'foo', 'ASCII' );
Returns a HTML::Widget::Container object for element or a list of HTML::Widget::Container objects for form.
my @form = $f->element; my $age = $f->element('age');
Create spans for errors even when there's no errors.. (For AJAX validation validation)
Returns a list of element names.
my @names = $form->has_errors; my $error = $form->has_errors($name);
Contains the widget id.
Contains the legend.
Contains the form method.
Returns valid parameters with a CGI.pm-compatible param method. (read-only)
Returns validated params as hashref.
Contains the subcontainer tag.
Only consider parameters that pass at least one constraint valid.
my @names = $form->valid; my $valid = $form->valid($name);
Adds another valid value to the hash.
Sebastian Riedel, sri@oook.de
sri@oook.de
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTML::Widget, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Widget
CPAN shell
perl -MCPAN -e shell install HTML::Widget
For more information on module installation, please visit the detailed CPAN module installation guide.