Reaction::UI::Widget::Field::Array - A field representing an array of localised items


Reaction documentation Contained in the Reaction distribution.

Index


Code Index:

NAME

Top

Reaction::UI::Widget::Field::Array - A field representing an array of localised items

DESCRIPTION

Top

See Reaction::UI::Widget::Field::Collection, of which this widget is not a subclass.

FRAGMENTS

Top

widget

renders label and list passing additional variable "viewport"

label

content contains the viewport's label

list

renders fragment item over the viewport's value_names

item

content contains the value of the current item ($_ / $_{_})

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

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__;