Commit | Line | Data |
b8faba69 |
1 | package Reaction::UI::Widget::GridView::Entity; |
2 | |
3 | use Reaction::UI::WidgetClass; |
4 | |
5 | class Entity, which { |
aa8c0c90 |
6 | |
7 | implements fragment field_list { |
8 | render 'field' => over $_{viewport}->fields; |
9 | }; |
10 | |
11 | implements fragment field { |
12 | render 'viewport'; |
13 | }; |
14 | |
b8faba69 |
15 | }; |
16 | |
17 | 1; |
18 | |
19 | __END__; |
20 | |
21 | |
22 | =head1 NAME |
23 | |
24 | Reaction::UI::Widget::GridView::Entity |
25 | |
26 | =head1 DESCRIPTION |
27 | |
28 | =head1 FRAGMENTS |
29 | |
30 | =head2 widget |
31 | |
32 | Additional variables available in topic hash: "viewport". |
33 | |
6bc27bd3 |
34 | Renders "field_list" |
b8faba69 |
35 | |
6bc27bd3 |
36 | =head2 field_list |
b8faba69 |
37 | |
38 | Sequentially renders the C<fields> of the viewport as "field" |
39 | |
40 | =head2 field |
41 | |
42 | renders the cell value |
43 | |
44 | =head1 AUTHORS |
45 | |
46 | See L<Reaction::Class> for authors. |
47 | |
48 | =head1 LICENSE |
49 | |
50 | See L<Reaction::Class> for the license. |
51 | |
52 | =cut |