HTML::Shakan::Field::Input - <input /> field


HTML-Shakan documentation Contained in the HTML-Shakan distribution.

Index


Code Index:

NAME

Top

HTML::Shakan::Field::Input - <input /> field

DESCRIPTION

Top

This module provides the <input /> field object.

ATTRIBUTE

Top

type

<input type="XXX" /> attribute.

SEE ALSO

Top

HTML::Shakan


HTML-Shakan documentation Contained in the HTML-Shakan distribution.

package HTML::Shakan::Field::Input;
use Any::Moose;
extends 'HTML::Shakan::Field';

has '+widget' => (
    default => 'input',
);

has type => (
    is       => 'ro',
    isa      => 'Str',
    required => 1,
);
sub BUILD {
    my $self = shift;
    $self->attr->{type} = $self->type;
}

no Any::Moose;
__PACKAGE__->meta->make_immutable;
__END__