1 package Reaction::UI::Widget::Field::Mutable::HiddenArray;
3 use Reaction::UI::WidgetClass;
5 #move this to a normal list and let the hidden part be decided by the template..
6 use namespace::clean -except => [ qw(meta) ];
7 extends 'Reaction::UI::Widget::Field::Mutable';
9 implements fragment hidden_list {
10 render hidden_field => over $_{viewport}->value;
13 implements fragment hidden_field {
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 arg field_name => event_id 'value';
18 arg field_value => $_;
21 __PACKAGE__->meta->make_immutable;
30 Reaction::UI::Widget::Field::Mutable::HiddenArray
34 See L<Reaction::UI::Widget::Field::Mutable>. This renders a list of values
35 as a series of hidden fields to transport them across forms.
41 Renders C<hidden_field> over the array reference stored in the viewpoint's
46 Sets the C<field_value> argument to the current topic argument C<_>.
50 renders fragment C<item> over the values of 'value' arrayref
54 C<content> is $_{_} / $_ (current item in the 'value' array)
60 share/skin/base/layout/field/mutable/hidden_array.tt
62 Provides a C<hidden_field> layout that renders a hidden input element.
66 See L<Reaction::Class> for authors.
70 See L<Reaction::Class> for the license.