line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::FormWidgets::Textarea; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
766
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
5
|
1
|
|
|
1
|
|
5
|
use parent 'HTML::FormWidgets'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors( qw( cols config rows ) ); |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub init { |
10
|
1
|
|
|
1
|
1
|
2
|
my ($self, $args) = @_; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
|
|
3
|
$self->cols ( 60 ); |
13
|
1
|
|
|
|
|
7
|
$self->config( undef ); |
14
|
1
|
|
|
|
|
8
|
$self->rows ( 1 ); |
15
|
1
|
|
|
|
|
5
|
return; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub render_field { |
19
|
1
|
|
|
1
|
1
|
3
|
my ($self, $args) = @_; |
20
|
|
|
|
|
|
|
|
21
|
1
|
50
|
33
|
|
|
3
|
$self->id and $self->config |
22
|
|
|
|
|
|
|
and $self->add_literal_js( 'inputs', $self->id, $self->config ); |
23
|
|
|
|
|
|
|
|
24
|
1
|
50
|
50
|
|
|
14
|
$args->{class} .= ($args->{class} ? q( ): q()).($self->class || q(ifield)); |
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
|
|
11
|
$args->{cols } = $self->cols; $args->{rows} = $self->rows; |
|
1
|
|
|
|
|
6
|
|
27
|
|
|
|
|
|
|
|
28
|
1
|
|
|
|
|
7
|
return $self->hacc->textarea( $args ); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|