NAME
Reaction::UI::Widget::Action
DESCRIPTION
This is a subclass of Reaction::UI::Widget::Object::Mutable.
FRAGMENTS
widget
Additionally provides the method argument containing the value of the viewport's method.
message
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.
error_message
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.
ok_button_fragment
Renders nothing unless the viewport accepts the ok event.
If it does, it provides the following arguments before rendering ok_button:
- event_id
-
Is set to the event id
ok. - label
-
Is set to the localized
ok_labelof the viewport.
apply_button_fragment
Renders nothing unless the viewport accepts the apply event.
If it does, it provides the following arguments before rendering apply_button:
- event_id
-
Is set to the event id
apply. - label
-
Is set to the localized
apply_labelof the viewport.
cancel_button_fragment
Renders nothing unless the viewport accepts the close event.
If it does, it provides the following arguments before rendering cancel_button:
- event_id
-
Is set to the event id
close. - label
-
Is set to the localized
close_labelof the viewport.
LAYOUT SETS
base
share/skin/base/layout/action.tt
The following layouts are provided:
- widget
-
Renders a
divelement containing aform. Theformelement contains the renderedheader,container_list,buttonsandfooterfragments. - header
-
Renders the error message.
- container_list
-
Simply renders the parent
container_list. - container
-
Simply renders the parent
container. -
First renders the
messagefragment, then theok_button_fragment, theapply_button_fragmentand thecancel_button_fragment. - message_layout
-
Renders the
message_stringargument in aspanelement with anaction_messageclass. - error_message_layout
-
Renders the
message_stringargument in aspanelement with anaction_error_messageclass. -
Renders a submit button in a
spanwith thenameset to theevent_idargument, and the value set to thelabelargument. -
Renders the
standard_buttonfragment. -
Renders the
standard_buttonfragment. -
Renders the
standard_buttonfragment. -
Empty by default.
default
share/skin/base/layout/action.tt
Extends the layout set of the same name in the parent skin.
The following layouts are provided:
- container
-
Adds a
brelement after the originalcontainerfragment. - message_layout
-
Adds a
brelement after the originalmessage_layoutfragment.
SEE ALSO
AUTHORS
See Reaction::Class for authors.
LICENSE
See Reaction::Class for the license.