Commit | Line | Data |
b8faba69 |
1 | package Reaction::UI::Widget::GridView::Entity; |
2 | |
3 | use Reaction::UI::WidgetClass; |
4 | |
5 | class Entity, which { |
6 | #this could be flattened if i could do: |
27ebb686 |
7 | # fragment widget [field => over sub{ $_{self}->viewport->fields } ]; |
b8faba69 |
8 | #to be honest, I think that the key viewport should be available by default in %_ |
6bc27bd3 |
9 | fragment widget [ 'field_list' ]; |
27ebb686 |
10 | fragment field_list [ field => over func('viewport', 'fields') ]; |
6bc27bd3 |
11 | fragment field [ 'viewport' ]; |
b8faba69 |
12 | }; |
13 | |
14 | 1; |
15 | |
16 | __END__; |
17 | |
18 | |
19 | =head1 NAME |
20 | |
21 | Reaction::UI::Widget::GridView::Entity |
22 | |
23 | =head1 DESCRIPTION |
24 | |
25 | =head1 FRAGMENTS |
26 | |
27 | =head2 widget |
28 | |
29 | Additional variables available in topic hash: "viewport". |
30 | |
6bc27bd3 |
31 | Renders "field_list" |
b8faba69 |
32 | |
6bc27bd3 |
33 | =head2 field_list |
b8faba69 |
34 | |
35 | Sequentially renders the C<fields> of the viewport as "field" |
36 | |
37 | =head2 field |
38 | |
39 | renders the cell value |
40 | |
41 | =head1 AUTHORS |
42 | |
43 | See L<Reaction::Class> for authors. |
44 | |
45 | =head1 LICENSE |
46 | |
47 | See L<Reaction::Class> for the license. |
48 | |
49 | =cut |