1 package Reaction::UI::ViewPort::Collection::Grid;
5 use aliased 'Reaction::InterfaceModel::Collection' => 'IM_Collection';
6 use aliased 'Reaction::UI::ViewPort::Collection::Grid::Member';
8 use namespace::clean -except => [ qw(meta) ];
9 use MooseX::Types::Moose qw/ArrayRef HashRef Int/;
10 extends 'Reaction::UI::ViewPort::Collection';
12 with 'Reaction::UI::ViewPort::Role::FieldArgs';
14 has member_action_count => (
21 for (@{ $self->members }) {
22 my $protos = $_->action_prototypes;
23 return scalar(keys(%$protos));
29 sub _build_member_class { Member };
31 __PACKAGE__->meta->make_immutable;
40 Reaction::UI::ViewPort::Collection
44 This subclass of L<Reaction::UI::ViewPort::Collection> allows you to display a
45 homogenous collection of Reaction::InterfaceModel::Objects as a grid.
51 =head2 excluded_fields
53 List of field names to exclude.
55 =head2 included_fields
57 List of field names to include. If both C<included_fields> and
58 C<excluded_fields> are specified the result is those fields which
59 are in C<included_fields> and not in C<excluded_fields>.
61 =head2 included_fields
63 List of field names to include. If both C<included_fields> and
64 C<excluded_fields> are specified the result is those fields which
65 are in C<included_fields> and not in C<excluded_fields>.
70 =head2 _raw_field_labels
72 =head2 computed_field_order
74 =head2 member_action_count
76 =head1 INTERNAL METHODS
78 These methods, although stable, are subject to change without notice. These are meant
79 to be used only by developers. End users should refrain from using these methods to
80 avoid potential breakages.
84 L<Reaction::UI::ViewPort::Collection>
88 See L<Reaction::Class> for authors.
92 See L<Reaction::Class> for the license.