|
NAMEReaction::UI::Controller::Role::Action::View - View action DESCRIPTIONProvides 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 CONSUMEDThis role also consumes the following roles: ACTIONSviewChain endpoint with no args, sets up the viewport with the appropriate viewport. METHODS_build_action_viewport_mapExtends to set the "view" key in the map to Reaction::UI::ViewPort::Object SEE ALSO
AUTHORSSee Reaction::Class for authors. LICENSESee Reaction::Class for the license. POD ERRORSHey! The above document had some coding errors, which are explained below:
|