more pod fixes
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Field / Array.pm
CommitLineData
c8fbb8ad 1package Reaction::UI::Widget::Field::Array;
7b78a39d 2
3use Reaction::UI::WidgetClass;
4
bae75bee 5use namespace::clean -except => [ qw(meta) ];
d7b00a50 6
d7b00a50 7
bae75bee 8before fragment widget {
d219104c 9 arg 'label' => localized $_{viewport}->label;
bae75bee 10};
d7b00a50 11
bae75bee 12implements fragment list {
13 render 'item' => over $_{viewport}->value_names;
14};
d7b00a50 15
bae75bee 16implements fragment item {
d219104c 17 arg 'name' => localized $_;
7b78a39d 18};
19
bae75bee 20__PACKAGE__->meta->make_immutable;
21
22
7b78a39d 231;
24
25__END__;
26
5a1a893e 27=head1 NAME
7b78a39d 28
f9b32c83 29Reaction::UI::Widget::Field::Array - A field representing an array of localised items
7b78a39d 30
5a1a893e 31=head1 DESCRIPTION
7b78a39d 32
f9b32c83 33See L<Reaction::UI::Widget::Field::Collection>, of which this widget is not a subclass.
34
5a1a893e 35=head1 FRAGMENTS
7b78a39d 36
5a1a893e 37=head2 widget
7b78a39d 38
5a1a893e 39renders C<label> and C<list> passing additional variable "viewport"
7b78a39d 40
5a1a893e 41=head2 label
42
43C<content> contains the viewport's label
44
45=head2 list
46
47renders fragment item over the viewport's C<value_names>
48
49=head2 item
50
51C<content> contains the value of the current item ($_ / $_{_})
52
53=head1 AUTHORS
54
55See L<Reaction::Class> for authors.
56
57=head1 LICENSE
58
59See L<Reaction::Class> for the license.
7b78a39d 60
61=cut