Object consumes Action and Collection consumes Pager and Action, so Member::WithActio...
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Object.pm
index a44a66d..8674e44 100644 (file)
@@ -21,6 +21,14 @@ implements fragment field {
   render 'viewport';
 };
 
+implements fragment actions {
+  render action => over $_{viewport}->actions;
+};
+
+implements fragment action {
+  render 'viewport';
+};
+
 __PACKAGE__->meta->make_immutable;
 
 1;
@@ -29,7 +37,7 @@ __END__;
 
 =head1 NAME
 
-Reaction::UI::Widget::Object
+Reaction::UI::Widget::Object - Widget to implement rendering of an object
 
 =head1 DESCRIPTION
 
@@ -37,11 +45,22 @@ Reaction::UI::Widget::Object
 
 =head2 container_list
 
-Sequentially renders the C<fields> of the viewport;
+Sequentially renders the C<fields> of the viewport found in its C<containers>
+method return values.
 
 =head2 container
 
-Renders the C<field> viewport passed by C<field_list>
+Renders the C<field> viewport passed by C<container_list>.
+
+=head2 actions
+
+Renders the C<action> fragment with every item in the viewports C<actions>.
+
+=head2 action
+
+Renders the C<viewport> fragment provided by L<Reaction::UI::Widget>, thus
+rendering the current viewport stored in the C<_> topic argument provided
+by the C<actions> fragment.
 
 =head1 DEPRECATED FRAGMENTS
 
@@ -53,6 +72,42 @@ Sequentially renders the C<fields> of the viewport;
 
 Renders the C<field> viewport passed by C<field_list>
 
+=head1 LAYOUT SETS
+
+=head2 base
+
+  share/skin/base/layout/object.tt
+
+The following layouts are provided:
+
+=over 4
+
+=item widget
+
+Renders the C<container_list> fragment.
+
+=item container
+
+Renders the container viewport.
+
+=back
+
+=head2 default
+
+  share/skin/default/layout/object.tt
+
+This layout set inherits from the one with the same name in the C<base> skin.
+
+The following layouts are provided:
+
+=over 4
+
+=item container
+
+Renders the container viewport.
+
+=back
+
 =head1 AUTHORS
 
 See L<Reaction::Class> for authors.