The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

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

DESCRIPTION

Callback Constraint.

METHODS

$self->cb( sub { $value=shift; } )

$self->callback( sub { $value=shift; } )

define the callback to be used for validation. cb is an alias to callback.

$self->validate($value)

perform the actual validation.

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.