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".
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:
- Reaction::UI::Controller::Role::Action::Simple
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
- 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
See Reaction::Class for authors.
See Reaction::Class for the license.
Hey! The above document had some coding errors, which are explained
below:
- 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'