![]() |
![]()
| ![]() |
![]()
NAMEReaction::UI::Controller::Role::Action::List - List action DESCRIPTIONProvides a "list" action, which sets up an Collection Viewport using the collection contained in the "collection" slot of the stash, if present, or using the object returned by the method "get_collection". SYNOPSYSpackage 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::List' ); __PACKAGE__->config( action => { list => { Chained => 'base' }, } ); sub base :Chained('/base') :CaptureArgs(0) { ... } ROLES CONSUMEDThis role also consumes the following roles: REQUIRED METHODSThe following methods must be provided by the consuming class:
ACTIONSlistChain endpoint with no args, sets up the viewport with the appropriate action. METHODS_build_action_viewport_mapExtends to set the "list" key in the map to Reaction::UI::ViewPort::Action 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:
|