| 1 | package HTML::Shakan::Field::Input; | ||
| 2 | 22 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 22 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 22 | ▶ | use Mouse; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 22 | extends 'HTML::Shakan::Field'; | |
| 6 | |||
| 7 | 22 | has '+widget' => ( | |
| 8 | default => 'input', | ||
| 9 | ); | ||
| 10 | |||
| 11 | 22 | has type => ( | |
| 12 | is => 'ro', | ||
| 13 | isa => 'Str', | ||
| 14 | required => 1, | ||
| 15 | ); | ||
| 16 | sub BUILD { | ||
| 17 | 49 | ▶ | my $self = shift; |
|
Subroutine
BUILD: called CC=1 SCAR=0.0
Pod
documented
| |||
| 18 | 49 | $self->attr->{type} = $self->type; | |
| 19 | } | ||
| 20 | |||
| 21 | 22 | ▶ | no Mouse; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 22 | __PACKAGE__->meta->make_immutable; | |
| 23 | __END__ | ||
| 24 | |||
| 25 | =head1 NAME | ||
| 26 | |||
| 27 | HTML::Shakan::Field::Input - <input /> field | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | This module provides the <input /> field object. | ||
| 32 | |||
| 33 | =head1 ATTRIBUTE | ||
| 34 | |||
| 35 | =over 4 | ||
| 36 | |||
| 37 | =item type | ||
| 38 | |||
| 39 | <input type="XXX" /> attribute. | ||
| 40 | |||
| 41 | =back | ||
| 42 | |||
| 43 | =head1 SEE ALSO | ||
| 44 | |||
| 45 | L<HTML::Shakan> | ||
| 46 | |||