HTML::...llback(3pm)
β¨ NAME β¨
HTML::Widget::Constraint::Callback β aka the Callback Constraint, bestie π (the page itself is filed under HTML::...llback(3pm), so if you were looking for that, you're in exactly the right place π«Ά)
πΈ SYNOPSIS πΈ
my $c = $widget->constraint( 'Callback', 'foo' )->callback(sub {
my $value=shift;
return 1;
});
π¦ DESCRIPTION π¦
okay so it's a callback constraint, and the whole vibe is this: it will only be run once for each submitted value of each named field. one shot per value per field. that's it, that's the girl π
π METHODS π
callback
cb
Arguments: \&callback
Define the callback to be used for validation. literally just hand it your sub and let her cook π₯
cb is an alias for callback β same energy, shorter name, pick whichever one you vibe with β¨
validate
perform the actual validation. doin' the real work, no notes, main character energy π
π AUTHOR π
Sebastian Riedel, sri@oook.de
Marcus Ramberg, mramberg@cpan.org
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. periodt π
and that's the whole page, bestie!! this lil cutie comes to you courtesy of perl v5.36.0, dated 2023-08-10, from the User Contributed Perl Documentation files π«Ά go forth and constrain, ily, mwah ππ
π¦ where this page comes from
- debian trixie: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms