« lib/Reaction/UI/Widget/Object.pm
↑ Summary
lib/Reaction/UI/ViewPort/Collection/Role/UseSearchSpec.pm »
| 1 | package Reaction::UI::Widget::Field::Mutable::HiddenArray; | ||
| 2 | |||
| 3 | 1 | ▶ | use Reaction::UI::WidgetClass; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | #move this to a normal list and let the hidden part be decided by the template.. | ||
| 6 | 1 | ▶ | use namespace::clean -except => [ qw(meta) ]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | extends 'Reaction::UI::Widget::Field::Mutable'; | |
| 8 | |||
| 9 | 0 | ▶ | implements fragment hidden_list { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 10 | 0 | render hidden_field => over $_{viewport}->value; | |
| 11 | 1 | }; | |
| 12 | |||
| 13 | 0 | ▶ | implements fragment hidden_field { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 14 | # this needs to go here in order to override the field_name from | ||
| 15 | # Widget::Field::Mutable::Simple which defaults to value_string and does not | ||
| 16 | # make sense for HiddenArray | ||
| 17 | 0 | arg field_name => event_id 'value'; | |
| 18 | 0 | arg field_value => $_; | |
| 19 | 1 | }; | |
| 20 | |||
| 21 | 1 | __PACKAGE__->meta->make_immutable; | |
| 22 | |||
| 23 | |||
| 24 | 1 | 1; | |
| 25 | |||
| 26 | __END__; | ||