logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::Widget::Constraint::Callback - Callback Constraint

Author

       Sebastian Riedel, "sri@oook.de"

       Marcus Ramberg, "mramberg@cpan.org"

Description

       A callback constraint which will only be run once for each submitted value of each named field.

License

       This library is free software, you can redistribute it and/or modify it under the same terms as Perl
       itself.

perl v5.36.0                                       2023-08-10             HTML::Widget::C...raint::Callback(3pm)

Methods

callbackcb
       Arguments: \&callback

       Define the callback to be used for validation.

       "cb" is an alias for "callback".

   validate
       perform the actual validation.

Name

       HTML::Widget::Constraint::Callback - Callback Constraint

Synopsis

           my $c = $widget->constraint( 'Callback', 'foo' )->callback(sub {
               my $value=shift;
               return 1;
           });

See Also