NAME
Reaction::UI::ViewPort::Action
SYNOPSIS
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/ ],
);
DESCRIPTION
This subclass of Reaction::UI::ViewPort::Object is used for rendering a collection of Reaction::UI::ViewPort::Field::Mutable::*
objects for user editing.
ATTRIBUTES
model
Reaction::InterfaceModel::Action
ok_label
Default: 'ok'
apply_label
Default: 'apply'
close_label_close
Default: 'close'
close_label_cancel
This label is only shown when changed
is true.
Default: 'cancel'
fields
can_apply
can_close
changed
Returns true if a field has been edited.
next_action
on_apply_callback
CodeRef.
METHODS
ok
Calls apply
, and then close
if successful.
close
Pop viewport and proceed to next_action
.
apply
Attempt to save changes and update changed
attribute if required.
SEE ALSO
Reaction::UI::ViewPort::Object
Reaction::InterfaceModel::Action
AUTHORS
See Reaction::Class for authors.
LICENSE
See Reaction::Class for the license.