HTML::Shakan::Field::Choice - choice field


HTML-Shakan documentation  | view source Contained in the HTML-Shakan distribution.

Index


NAME

Top

HTML::Shakan::Field::Choice - choice field

SYNOPSIS

Top

    use HTML::Shakan::Field::Choice;
    HTML::Shakan::Field::Choice->new(
        name => 'pref',
        choices => [qw/tokyo osaka kyoto/],
    );

    # or shortcut
    use HTML::Shakan::Fields;
    ChoiceField(
        name => 'pref',
        choices => [qw/tokyo osaka kyoto/],
    );

    # if you want radio button
    ChoiceField(
        name => 'pref',
        choices => [qw/tokyo osaka kyoto/],
        widget => 'radio',
    );

DESCRIPTION

Top

Choice field implementation. This field may show in html as <select></select> tag.

base class

Top

HTML::Shakan::Field

SEE ALSO

Top

HTML::Shakan


HTML-Shakan documentation  | view source Contained in the HTML-Shakan distribution.