1 package Reaction::UI::Widget::Field::Array;
3 use Reaction::UI::WidgetClass;
5 use namespace::clean -except => [ qw(meta) ];
8 before fragment widget {
9 arg 'label' => localized $_{viewport}->label;
12 implements fragment list {
13 render 'item' => over $_{viewport}->value_names;
16 implements fragment item {
17 arg 'name' => localized $_;
20 __PACKAGE__->meta->make_immutable;
29 Reaction::UI::Widget::Field::Array - A field representing an array of localised items
33 See L<Reaction::UI::Widget::Field::Collection>, of which this widget is not a subclass.
39 renders C<label> and C<list> passing additional variable "viewport"
43 C<content> contains the viewport's label
47 renders fragment item over the viewport's C<value_names>
51 C<content> contains the value of the current item ($_ / $_{_})
55 See L<Reaction::Class> for authors.
59 See L<Reaction::Class> for the license.