| 1 | package Form::Factory::Interface::HTML::Widget::List; | ||
| 2 | 1 | $Form::Factory::Interface::HTML::Widget::List::VERSION = '0.022'; | |
| 3 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | extends qw( Form::Factory::Interface::HTML::Widget::Element ); | |
| 6 | |||
| 7 | # ABSTRACT: HTML interface widget helper | ||
| 8 | |||
| 9 | |||
| 10 | 1 | has '+tag_name' => ( | |
| 11 | default => 'ul', | ||
| 12 | ); | ||
| 13 | |||
| 14 | has items => ( | ||
| 15 | is => 'ro', | ||
| 16 | isa => 'ArrayRef[Form::Factory::Interface::HTML::Widget::ListItem]', | ||
| 17 | required => 1, | ||
| 18 | 0 | ▶ | default => sub { [] }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 19 | 1 | ); | |
| 20 | |||
| 21 | 0 | ▶ | sub has_content { 1 } |
|
Subroutine
has_content: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 22 | |||
| 23 | 0 | ▶ | sub render_items { |
|
Subroutine
render_items: not called CC=2 SCAR=17.9
Pod
undocumented
| |||
| 24 | 0 | my $self = shift; | |
| 25 | 0 | my $content = ''; | |
| 26 | 0 | for my $item (@{ $self->items }) { | |
| 27 | 0 | $content .= $item->render; | |
| 28 | } | ||
| 29 | 0 | return $content; | |
| 30 | } | ||
| 31 | |||
| 32 | 0 | ▶ | override render_content => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 33 | 0 | my $self = shift; | |
| 34 | 0 | return super() . $self->render_items; | |
| 35 | 1 | }; | |
| 36 | |||
| 37 | 130 | ▶ | sub consume_control { } |
|
Subroutine
consume_control: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 38 | |||
| 39 | |||
| 40 | 1 | __PACKAGE__->meta->make_immutable; | |
| 41 | |||
| 42 | __END__ | ||