package Reaction::UI::Widget::Field::Mutable::HiddenArray; use Reaction::UI::WidgetClass; #move this to a normal list and let the hidden part be decided by the template.. use namespace::clean -except => [ qw(meta) ]; extends 'Reaction::UI::Widget::Field::Mutable'; implements fragment hidden_list { render hidden_field => over $_{viewport}->value; }; implements fragment hidden_field { arg field_value => $_; }; __PACKAGE__->meta->make_immutable; 1; __END__; =head1 NAME Reaction::UI::Widget::Field::Mutable::HiddenArray =head1 DESCRIPTION See L. This renders a list of values as a series of hidden fields to transport them across forms. =head1 FRAGMENTS =head2 hidden_list Renders C over the array reference stored in the viewpoint's C. =head2 hidden_field Sets the C argument to the current topic argument C<_>. =head2 field renders fragment C over the values of 'value' arrayref =head2 item C is $_{_} / $_ (current item in the 'value' array) =head1 LAYOUT SETS =head2 base share/skin/base/layout/field/mutable/hidden_array.tt Provides a C layout that renders a hidden input element. =head1 AUTHORS See L for authors. =head1 LICENSE See L for the license. =cut