Justin Hunter > Reaction > Reaction::UI::Controller::Role::Action::View

Download:
Reaction-0.002005.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
Stalled  1
View/Report Bugs
Source  

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.

syntax highlighting: