HTML::Widget::Constraint - Constraint Base Class
my $c = $widget->constraint( $type, @names ); $c->message('Validation error.'); $c->names(@names); $c->not(1);
Constraint Base Class.
Default error message for failing constraints.
Called once when process() gets called for the first time.
Should return JavaScript for client side validation and the like.
Contains the validation error message.
Returns a validation error message.
Contains names of params to test.
Negate constraint.
Called every time process() gets called.
Validates params and returns a arrayref containing HTML::Widget::Error objects representing failed constraints.
Returns a hashref containing JavaScripts for client side validation and the like.
Validates a value and returns 1 or 0.
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.