| Reaction documentation | Contained in the Reaction distribution. |
Reaction::UI::Widget::Field::Array - A field representing an array of localised items
See Reaction::UI::Widget::Field::Collection, of which this widget is not a subclass.
renders label and list passing additional variable "viewport"
content contains the viewport's label
renders fragment item over the viewport's value_names
content contains the value of the current item ($_ / $_{_})
See Reaction::Class for authors.
See Reaction::Class for the license.
| Reaction documentation | Contained in the Reaction distribution. |
package Reaction::UI::Widget::Field::Array; use Reaction::UI::WidgetClass; use namespace::clean -except => [ qw(meta) ]; before fragment widget { arg 'label' => localized $_{viewport}->label; }; implements fragment list { render 'item' => over $_{viewport}->value_names; }; implements fragment item { arg 'name' => localized $_; }; __PACKAGE__->meta->make_immutable; 1; __END__;