Reaction::UI::ViewPort::Collection::Grid - Reaction::UI::ViewPort::Collection::Grid documentation


Reaction documentation Contained in the Reaction distribution.

Index


Code Index:

NAME

Top

Reaction::UI::ViewPort::Collection

DESCRIPTION

Top

This subclass of Reaction::UI::ViewPort::Collection allows you to display a homogenous collection of Reaction::InterfaceModel::Objects as a grid.

ATTRIBUTES

Top

field_order

excluded_fields

List of field names to exclude.

included_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.

included_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.

field_labels

_raw_field_labels

computed_field_order

member_action_count

INTERNAL METHODS

Top

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 ALSO

Top

Reaction::UI::ViewPort::Collection

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

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__;