NAME

Reaction::UI::Controller::Role::Action::List - List action

DESCRIPTION

Provides 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.

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::List'
    );


    __PACKAGE__->config( action => {
      list => { Chained => 'base' },
    } );

    sub base :Chained('/base') :CaptureArgs(0) {
      ...
    }

ROLES CONSUMED

This role also consumes the following roles:

Reaction::UI::Controller::Role::Action::Simple

REQUIRED METHODS

The following methods must be provided by the consuming class:

get_collection

ACTIONS

list

Chain endpoint with no args, sets up the viewport with the appropriate action.

METHODS

_build_action_viewport_map

Extends to set the list key in the map to Reaction::UI::ViewPort::Action

SEE ALSO

Reaction::UI::Controller
Reaction::UI::Controller::Role::GetCollection
Reaction::UI::Controller::Role::Action::Simple
Reaction::UI::Controller::Role::Action::View
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.

6 POD Errors

The following errors were encountered while parsing the POD:

Around line 61:

Unknown directive: =over4

Around line 63:

'=item' outside of any '=over'

Around line 71:

Unknown directive: =over4

Around line 73:

'=item' outside of any '=over'

Around line 91:

Unknown directive: =over4

Around line 93:

'=item' outside of any '=over'