diff options
author | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-07-27 18:34:34 +0000 |
---|---|---|
committer | wreis <wreis@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-07-27 18:34:34 +0000 |
commit | d738d11fb21607bb66617ac95a455be8c9fa9e62 (patch) | |
tree | b0babb8ea470fe91ba181a2a8c414a50505b43fd /lib/Reaction/UI/Widget/Collection | |
parent | 7ece76fce1b940dd3ba81166254d971d8ff1d991 (diff) | |
download | reaction-d738d11fb21607bb66617ac95a455be8c9fa9e62.tar.gz reaction-d738d11fb21607bb66617ac95a455be8c9fa9e62.zip |
Object consumes Action and Collection consumes Pager and Action, so Member::WithActions go away
Diffstat (limited to 'lib/Reaction/UI/Widget/Collection')
-rw-r--r-- | lib/Reaction/UI/Widget/Collection/Grid/Member.pm | 2 | ||||
-rw-r--r-- | lib/Reaction/UI/Widget/Collection/Grid/Member/WithActions.pm | 105 |
2 files changed, 1 insertions, 106 deletions
diff --git a/lib/Reaction/UI/Widget/Collection/Grid/Member.pm b/lib/Reaction/UI/Widget/Collection/Grid/Member.pm index 24168a6..3a47aa0 100644 --- a/lib/Reaction/UI/Widget/Collection/Grid/Member.pm +++ b/lib/Reaction/UI/Widget/Collection/Grid/Member.pm @@ -73,7 +73,7 @@ Renders the next C<field> fragment surrounded by a C<td> element. =item * L<Reaction::UI::Widget::Collection::Grid> -=item * L<Reaction::UI::Widget::Collection::Grid::Member::WithActions> +=item * L<Reaction::UI::Widget::Collection::Grid::Member> =back diff --git a/lib/Reaction/UI/Widget/Collection/Grid/Member/WithActions.pm b/lib/Reaction/UI/Widget/Collection/Grid/Member/WithActions.pm deleted file mode 100644 index f9ed586..0000000 --- a/lib/Reaction/UI/Widget/Collection/Grid/Member/WithActions.pm +++ /dev/null @@ -1,105 +0,0 @@ -package Reaction::UI::Widget::Collection::Grid::Member::WithActions; - -use Reaction::UI::WidgetClass; - -use namespace::clean -except => [ qw(meta) ]; -extends 'Reaction::UI::Widget::Collection::Grid::Member'; - -implements fragment actions { - render action => over $_{viewport}->actions; -}; - -implements fragment action { - render 'viewport'; -}; - -__PACKAGE__->meta->make_immutable; - -1; - -__END__; - -=head1 NAME - -Reaction::UI::Widget::Collection::Grid::Member::WithActions - Grid members with actions - -=head1 DESCRIPTION - -This is a subclass of L<Reaction::UI::Widget::Grid::Member> additionally -providing actions per member. - -=head1 FRAGMENTS - -=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 LAYOUT SETS - -=head2 base - - share/skin/base/layout/collection/grid/member/with_actions.tt - -This layout set extends the C<collection/grid/member> layout set in the parent -skin. - -The following layouts are provided: - -=over 4 - -=item field_list - -First renders the original C<field_list> fragment, then the C<actions> fragment. - -=item action - -Simply renders the next C<action> fragment in line. - -=back - -=head2 default - - share/skin/default/layout/collection/grid/member/with_actions.tt - -This layout skin extends the C<collection/grid/member> layout set in the parent -skin. - -The following layouts are provided: - -=over 4 - -=item field_list - -The same as in the C<base> skin. - -=item action - -Renders the original C<action> fragment surrounded by a C<td> element. - -=back - -=head1 SEE ALSO - -=over 4 - -=item * L<Reaction::UI::Widget::Grid::Member> - -=item * L<Reaction::UI::Widget::Grid> - -=back - -=head1 AUTHORS - -See L<Reaction::Class> for authors. - -=head1 LICENSE - -See L<Reaction::Class> for the license. - -=cut |