Commit | Line | Data |
---|---|---|
2f670e13 | 1 | package Reaction::UI::Widget::Field::Mutable::HiddenArray; |
8f19d042 | 2 | |
3 | use Reaction::UI::WidgetClass; | |
4 | ||
2f670e13 | 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 { | |
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 | ||
18 | 1; | |
19 | ||
6ab43711 | 20 | __END__; |
8f19d042 | 21 | |
5a1a893e | 22 | =head1 NAME |
8f19d042 | 23 | |
5a1a893e | 24 | Reaction::UI::Widget::Field::HiddenArray |
8f19d042 | 25 | |
5a1a893e | 26 | =head1 DESCRIPTION |
8f19d042 | 27 | |
5a1a893e | 28 | See L<Reaction::UI::Widget::Field> |
8f19d042 | 29 | |
5a1a893e | 30 | =head1 FRAGMENTS |
8f19d042 | 31 | |
5a1a893e | 32 | =head2 field |
8f19d042 | 33 | |
5a1a893e | 34 | renders fragment C<item> over the values of 'value' arrayref |
8f19d042 | 35 | |
5a1a893e | 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. | |
8f19d042 | 47 | |
48 | =cut |