documentation update, some api docs, overview and tutorial upto first DM and IM inclu...
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Collection / Grid.pm
1 package Reaction::UI::Widget::Collection::Grid;
2
3 use Reaction::UI::WidgetClass;
4
5 use namespace::clean -except => [ qw(meta) ];
6 extends 'Reaction::UI::Widget::Collection';
7
8 implements fragment header_cells {
9   arg 'labels' => $_{viewport}->field_labels;
10   render header_cell => over $_{viewport}->computed_field_order;
11   if ($_{viewport}->member_action_count) {
12     render 'header_action_cell';
13   }
14 };
15
16 implements fragment header_cell {
17   arg label => localized $_{labels}->{$_};
18 };
19
20 implements fragment header_action_cell {
21   arg col_count => $_{viewport}->member_action_count;
22 };
23
24 __PACKAGE__->meta->make_immutable;
25
26 1;
27
28 __END__;
29
30 =head1 NAME
31
32 Reaction::UI::Widget::Grid
33
34 =head1 DESCRIPTION
35
36 =head1 FRAGMENTS
37
38 =head1 AUTHORS
39
40 See L<Reaction::Class> for authors.
41
42 =head1 LICENSE
43
44 See L<Reaction::Class> for the license.
45
46 =cut