The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Reaction::UI::Controller::Role::Action::View - View action

DESCRIPTION

Provides a view action, which sets up an Object Viewport using the object located in the object slot of the stash.

SYNOPSYS

    package MyApp::Controller::Foo;

    use base 'Reaction::Controller';
    use Reaction::Class;

    with(
      'Reaction::UI::Controller::Role::GetCollection',
      'Reaction::UI::Controller::Role::Action::Simple',
      'Reaction::UI::Controller::Role::Action::Object',
      'Reaction::UI::Controller::Role::Action::View'
    );

    __PACKAGE__->config( action => {
      object => { Chained => 'base' },
      view => { Chained => 'object' },
    } );

    sub base :Chained('/base') :CaptureArgs(0) {
      ...
    }

ROLES CONSUMED

This role also consumes the following roles:

Reaction::UI::Controller::Role::Action::Simple

ACTIONS

view

Chain endpoint with no args, sets up the viewport with the appropriate viewport.

METHODS

_build_action_viewport_map

Extends to set the view key in the map to Reaction::UI::ViewPort::Object

SEE ALSO

Reaction::UI::Controller
Reaction::UI::Controller::Role::GetCollection
Reaction::UI::Controller::Role::Action::Simple
Reaction::UI::Controller::Role::Action::List
Reaction::UI::Controller::Role::Action::Object
Reaction::UI::Controller::Role::Action::Create
Reaction::UI::Controller::Role::Action::Update
Reaction::UI::Controller::Role::Action::Delete
Reaction::UI::Controller::Role::Action::DeleteAll

AUTHORS

See Reaction::Class for authors.

LICENSE

See Reaction::Class for the license.

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 61:

Unknown directive: =over4

Around line 63:

'=item' outside of any '=over'

Around line 81:

Unknown directive: =over4

Around line 83:

'=item' outside of any '=over'