HTML::...llback(3pm)

πŸ“¦
version 1.11 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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