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