1 package Reaction::UI::ViewPort::Role::Actions;
4 use Reaction::UI::ViewPort::Action::Link;
8 has actions => (is => 'ro', isa => 'ArrayRef', lazy_build => 1);
9 has action_prototypes => (is => 'ro', isa => 'ArrayRef', lazy_build => 1);
10 implements _build_action_prototypes => as { [] };
12 implements _build_actions => as {
16 my $loc = $self->location;
17 foreach my $proto (@{ $self->action_prototypes }) {
18 my $action = Reaction::UI::ViewPort::Action::Link->new
21 target => $self->model,
22 location => join ('-', $loc, 'action', $i++),