
Reaction::UI::ViewPort::Action

use aliased 'Reaction::UI::ViewPort::Action';
$self->push_viewport(Action,
layout => 'register',
model => $action,
next_action => [ $self, 'redirect_to', 'accounts', $c->req->captures ],
ctx => $c,
field_order => [
qw / contact_title company_name email address1 address2 address3
city country post_code telephone mobile fax/ ],
);

This subclass of Reaction::UI::ViewPort::Object is used for rendering a collection of Reaction::UI::ViewPort::Field::Mutable::* objects for user editing.

Reaction::InterfaceModel::Action
Default: 'ok'
Default: 'apply'
Default: 'close'
This label is only shown when changed is true.
Default: 'cancel'
Returns true if a field has been edited.
CodeRef.

Calls apply, and then close if successful.
Pop viewport and proceed to next_action.
Attempt to save changes and update changed attribute if required.

Reaction::UI::ViewPort::Object
Reaction::InterfaceModel::Action

See Reaction::Class for authors.

See Reaction::Class for the license.