port actionform, field widgets to declarative system
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Field / HiddenArray.pm
1 package Reaction::UI::Widget::Field::HiddenArray;
2
3 use Reaction::UI::WidgetClass;
4
5 class HiddenArray is 'Reaction::UI::Widget::Field', which {
6
7   implements fragment hidden_list {
8     render hidden_field => over $_{viewport}->value;
9   };
10
11   implements fragment hidden_field {
12     arg field_value => $_;
13   };
14
15 };
16
17 1;
18
19 __END__;
20
21 =head1 NAME
22
23 Reaction::UI::Widget::Field::HiddenArray
24
25 =head1 DESCRIPTION
26
27 See L<Reaction::UI::Widget::Field>
28
29 =head1 FRAGMENTS
30
31 =head2 field
32
33 renders fragment C<item> over the values of 'value' arrayref
34
35 =head2 item
36
37 C<content> is $_{_} / $_ (current item in the 'value' array)
38
39 =head1 AUTHORS
40
41 See L<Reaction::Class> for authors.
42
43 =head1 LICENSE
44
45 See L<Reaction::Class> for the license.
46
47 =cut