MATSUNO★Tokuhiro > HTML-Shakan-1.00 > HTML::Shakan::Field::Choice

Download:
HTML-Shakan-1.00.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: HTML-Shakan-2.00

NAME ^

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

SYNOPSIS ^

    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 ^

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

base class ^

HTML::Shakan::Field

SEE ALSO ^

HTML::Shakan

syntax highlighting: