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: |
7 | # widget renders [field over sub{ $_{self}->viewport->fields } ]; |
8 | #to be honest, I think that the key viewport should be available by default in %_ |
9 | widget renders [ 'fields' ]; |
10 | fields renders [ field over func('viewport', 'fields') ]; |
11 | field renders [ 'viewport' ]; |
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 | |
31 | Renders "fields" |
32 | |
33 | =head2 fields |
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 |