| Reaction documentation | Contained in the Reaction distribution. |
Reaction::UI::ViewPort::Collection
This subclass of Reaction::UI::ViewPort::Collection allows you to display a homogenous collection of Reaction::InterfaceModel::Objects as a grid.
List of field names to exclude.
List of field names to include. If both included_fields and
excluded_fields are specified the result is those fields which
are in included_fields and not in excluded_fields.
List of field names to include. If both included_fields and
excluded_fields are specified the result is those fields which
are in included_fields and not in excluded_fields.
These methods, although stable, are subject to change without notice. These are meant to be used only by developers. End users should refrain from using these methods to avoid potential breakages.
See Reaction::Class for authors.
See Reaction::Class for the license.
| Reaction documentation | Contained in the Reaction distribution. |
package Reaction::UI::ViewPort::Collection::Grid; use Reaction::Class; use aliased 'Reaction::InterfaceModel::Collection' => 'IM_Collection'; use aliased 'Reaction::UI::ViewPort::Collection::Grid::Member'; use namespace::clean -except => [ qw(meta) ]; use MooseX::Types::Moose qw/ArrayRef HashRef Int/; extends 'Reaction::UI::ViewPort::Collection'; with 'Reaction::UI::ViewPort::Role::FieldArgs'; has member_action_count => ( is => 'rw', isa => Int, required => 1, lazy => 1, default => sub { my $self = shift; for (@{ $self->members }) { my $protos = $_->action_prototypes; return scalar(keys(%$protos)); } return 1; }, ); sub _build_member_class { Member }; __PACKAGE__->meta->make_immutable; 1; __END__;