Reaction::UI::Controller::Role::Action::View - View action
Provides a view action, which sets up an Object Viewport using the object located in the object slot of the stash.
view
object
stash
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) { ... }
This role also consumes the following roles:
Chain endpoint with no args, sets up the viewport with the appropriate viewport.
Extends to set the view key in the map to Reaction::UI::ViewPort::Object
See Reaction::Class for authors.
See Reaction::Class for the license.
4 POD Errors
The following errors were encountered while parsing the POD:
Unknown directive: =over4
'=item' outside of any '=over'
To install Reaction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Reaction
CPAN shell
perl -MCPAN -e shell install Reaction
For more information on module installation, please visit the detailed CPAN module installation guide.