MATSUNO★Tokuhiro > HTML-Shakan-0.02 > HTML::Shakan::Field

Download:
HTML-Shakan-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: HTML-Shakan-0.03

NAME ^

HTML::Shakan::Field - base class for field object

ATTRIBUTES ^

id

the 'id' attribute for the html elements.

name

the 'name' attribute for the html elements.

value

the 'value' attribute for the html elements.

filters

parameter filters.

widget

type of widget.

attr

hashref about the miscellaneous attributes.

label

label for this field.

required

is this field's value required?

custom_validation
    TextField(
        name => 'id',
        custom_validation => sub {
            my ($form, $field) = @_;
            if (is_reserved_id($form->param($field->name))) {
                $form->set_error($field->name() => 'reserved');
            }
        }
    )

custom validation callback

constraints

constraints for FormValidator::Lite.

AUTHORS ^

tokuhirom