Reaction::UI::Widget::Action
This is a subclass of Reaction::UI::Widget::Object::Mutable.
Additionally provides the method argument containing the value of the viewport's method.
method
Empty if the viewport's has_message returns false. Otherwise sets the message_string argument to the viewport's message and renders the message_layout fragment.
has_message
message_string
message
message_layout
Same as the message fragment above except that it checks has_error_message, sets message_string to the viewport's error_message and renders error_message_layout.
has_error_message
error_message
error_message_layout
Renders nothing unless the viewport accepts the ok event.
ok
If it does, it provides the following arguments before rendering ok_button:
ok_button
Is set to the event id ok.
Is set to the localized ok_label of the viewport.
ok_label
Renders nothing unless the viewport accepts the apply event.
apply
If it does, it provides the following arguments before rendering apply_button:
apply_button
Is set to the event id apply.
Is set to the localized apply_label of the viewport.
apply_label
Renders nothing unless the viewport accepts the close event.
close
If it does, it provides the following arguments before rendering cancel_button:
cancel_button
Is set to the event id close.
Is set to the localized close_label of the viewport.
close_label
share/skin/base/layout/action.tt
The following layouts are provided:
Renders a div element containing a form. The form element contains the rendered header, container_list, buttons and footer fragments.
div
form
header
container_list
buttons
footer
Renders the error message.
Simply renders the parent container_list.
Simply renders the parent container.
container
First renders the message fragment, then the ok_button_fragment, the apply_button_fragment and the cancel_button_fragment.
ok_button_fragment
apply_button_fragment
cancel_button_fragment
Renders the message_string argument in a span element with an action_message class.
span
action_message
Renders the message_string argument in a span element with an action_error_message class.
action_error_message
Renders a submit button in a span with the name set to the event_id argument, and the value set to the label argument.
name
event_id
label
Renders the standard_button fragment.
standard_button
Empty by default.
Extends the layout set of the same name in the parent skin.
Adds a br element after the original container fragment.
br
Adds a br element after the original message_layout fragment.
See Reaction::Class for authors.
See Reaction::Class for the license.
To install Reaction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Reaction
CPAN shell
perl -MCPAN -e shell install Reaction
For more information on module installation, please visit the detailed CPAN module installation guide.