X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FReaction%2FUI%2FWidget%2FObject.pm;h=8674e44efdf346b9640344bf677cca78a26ed364;hb=d738d11fb21607bb66617ac95a455be8c9fa9e62;hp=a44a66dfbd5996e5bd6b638dedc25916920e708a;hpb=599c1172394e3377d8e3e28c06557a99a1a10d1e;p=catagits%2FReaction.git diff --git a/lib/Reaction/UI/Widget/Object.pm b/lib/Reaction/UI/Widget/Object.pm index a44a66d..8674e44 100644 --- a/lib/Reaction/UI/Widget/Object.pm +++ b/lib/Reaction/UI/Widget/Object.pm @@ -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 of the viewport; +Sequentially renders the C of the viewport found in its C +method return values. =head2 container -Renders the C viewport passed by C +Renders the C viewport passed by C. + +=head2 actions + +Renders the C fragment with every item in the viewports C. + +=head2 action + +Renders the C fragment provided by L, thus +rendering the current viewport stored in the C<_> topic argument provided +by the C fragment. =head1 DEPRECATED FRAGMENTS @@ -53,6 +72,42 @@ Sequentially renders the C of the viewport; Renders the C viewport passed by C +=head1 LAYOUT SETS + +=head2 base + + share/skin/base/layout/object.tt + +The following layouts are provided: + +=over 4 + +=item widget + +Renders the C 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 skin. + +The following layouts are provided: + +=over 4 + +=item container + +Renders the container viewport. + +=back + =head1 AUTHORS See L for authors.