| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Form::Factory::Interface::HTML::Widget::Textarea; |
|
2
|
|
|
|
|
|
|
$Form::Factory::Interface::HTML::Widget::Textarea::VERSION = '0.022'; |
|
3
|
1
|
|
|
1
|
|
5
|
use Moose; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
extends qw( Form::Factory::Interface::HTML::Widget::Element ); |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: HTML interface widget helper |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has '+tag_name' => ( |
|
11
|
|
|
|
|
|
|
default => 'textarea', |
|
12
|
|
|
|
|
|
|
); |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
has name => ( |
|
15
|
|
|
|
|
|
|
is => 'ro', |
|
16
|
|
|
|
|
|
|
isa => 'Str', |
|
17
|
|
|
|
|
|
|
required => 1, |
|
18
|
|
|
|
|
|
|
); |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has rows => ( |
|
21
|
|
|
|
|
|
|
is => 'ro', |
|
22
|
|
|
|
|
|
|
isa => 'Int', |
|
23
|
|
|
|
|
|
|
predicate => 'has_rows', |
|
24
|
|
|
|
|
|
|
); |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
has cols => ( |
|
27
|
|
|
|
|
|
|
is => 'ro', |
|
28
|
|
|
|
|
|
|
isa => 'Int', |
|
29
|
|
|
|
|
|
|
predicate => 'has_cols', |
|
30
|
|
|
|
|
|
|
); |
|
31
|
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
0
|
0
|
sub has_content { 1 } |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
override more_attributes => sub { |
|
35
|
|
|
|
|
|
|
my $self = shift; |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
my %attributes = ( |
|
38
|
|
|
|
|
|
|
name => $self->name, |
|
39
|
|
|
|
|
|
|
); |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
$attributes{rows} = $self->rows if $self->has_rows; |
|
42
|
|
|
|
|
|
|
$attributes{cols} = $self->cols if $self->has_cols; |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
return \%attributes; |
|
45
|
|
|
|
|
|
|
}; |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub consume_control { |
|
48
|
1
|
|
|
1
|
0
|
3
|
my ($self, %options) = @_; |
|
49
|
1
|
|
|
|
|
3
|
my $params = $options{params}; |
|
50
|
1
|
|
|
|
|
32
|
my $name = $self->name; |
|
51
|
|
|
|
|
|
|
|
|
52
|
1
|
|
|
|
|
10
|
return { $name => $params->{ $name } }; |
|
53
|
|
|
|
|
|
|
} |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=pod |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=encoding UTF-8 |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 NAME |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Form::Factory::Interface::HTML::Widget::Textarea - HTML interface widget helper |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 VERSION |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
version 0.022 |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Move along. Nothing to see here. |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=for Pod::Coverage .* |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 AUTHOR |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Andrew Sterling Hanenkamp <hanenkamp@cpan.org> |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Qubling Software LLC. |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
87
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=cut |