how did hidden array end up here?
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Field / Mutable / HiddenArray.pm
CommitLineData
2f670e13 1package Reaction::UI::Widget::Field::Mutable::HiddenArray;
8f19d042 2
3use Reaction::UI::WidgetClass;
4
2f670e13 5#move this to a normal list and let the hidden part be decided by the template..
6class HiddenArray is 'Reaction::UI::Widget::Field::Mutable', which {
8f19d042 7
664d660c 8 implements fragment hidden_list {
9 render hidden_field => over $_{viewport}->value;
10 };
11
12 implements fragment hidden_field {
13 arg field_value => $_;
14 };
9de685fc 15
8f19d042 16};
17
181;
19
6ab43711 20__END__;
8f19d042 21
5a1a893e 22=head1 NAME
8f19d042 23
5a1a893e 24Reaction::UI::Widget::Field::HiddenArray
8f19d042 25
5a1a893e 26=head1 DESCRIPTION
8f19d042 27
5a1a893e 28See L<Reaction::UI::Widget::Field>
8f19d042 29
5a1a893e 30=head1 FRAGMENTS
8f19d042 31
5a1a893e 32=head2 field
8f19d042 33
5a1a893e 34renders fragment C<item> over the values of 'value' arrayref
8f19d042 35
5a1a893e 36=head2 item
37
38C<content> is $_{_} / $_ (current item in the 'value' array)
39
40=head1 AUTHORS
41
42See L<Reaction::Class> for authors.
43
44=head1 LICENSE
45
46See L<Reaction::Class> for the license.
8f19d042 47
48=cut