1 package Reaction::UI::Widget::Field::Collection;
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;
30 Reaction::UI::Widget::Field::Collection
38 renders C<label> and C<list> passing additional variable "viewport"
42 C<content> contains the viewport's label
46 renders fragment item over the viewport's C<value_names>
50 C<content> contains the value of the current item ($_ / $_{_})
54 See L<Reaction::Class> for authors.
58 See L<Reaction::Class> for the license.