HTML::Widget::Constraint::Callback(3pm)

HTML::Widget::Constraint::Callback3pm

Callback constraint

Usage

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

Overview

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

Methods

callback

cb

Arguments: \&callback

Define the callback to be used for validation.

"cb" is an alias for "callback".

validate

perform the actual validation.

Releases

10 releases since Debian 4.0 (Etch); the text changed 7 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8–9
  6. 10–11
  7. 12
  8. 13

Author

Sebastian Riedel, "[email protected]"

Marcus Ramberg, "[email protected]"

License

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

From libhtml-widget-perl 1.11-7 in Debian 13 (Trixie). Parsed by carta from the page's man source.