1 package Reaction::UI::Widget::Collection;
3 use Reaction::UI::WidgetClass;
5 use namespace::clean -except => [ qw(meta) ];
7 implements fragment members {
8 render member => over $_{viewport}->members;
11 implements fragment member {
15 implements fragment actions {
16 render action => over $_{viewport}->actions;
19 implements fragment action {
23 __PACKAGE__->meta->make_immutable;
32 Reaction::UI::Widget::Collection - Render the current viewport's member viewports
36 This widget will allow you to render the viewports stored in the current viewports
43 Renders the C<member> fragment for every entry in the viewports C<members> attribute.
47 Renders the C<viewport> fragment, which will in turn render the C<_> argument. That
48 will be one of the viewports in the current viewport's C<members> attribute when
49 called from C<members>.
53 share/skin/base/layout/collection.tt
55 The following layouts are provided:
61 Renders a C<div> element with a class attribute of C<collection_members> and the
62 C<members> fragment as the content.
70 =item * L<Reaction::UI::Widget::Collection::Grid>
72 =item * L<Reaction::UI::ViewPort::Collection>
78 See L<Reaction::Class> for authors.
82 See L<Reaction::Class> for the license.