1530bf57ccf5f9050670a9a7c6f30ffe06107b8e
[catagits/Reaction.git] / lib / Reaction / UI / Widget / GridView / Entity.pm
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   # fragment widget [field => over sub{ $_{self}->viewport->fields } ];
8   #to be honest, I think that the key viewport should be available by default in %_
9   fragment widget     [ 'field_list' ];
10   fragment field_list [ field => over func('viewport', 'fields') ];
11   fragment field      [ '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 "field_list"
32
33 =head2 field_list
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