replace renders with fragment
[catagits/Reaction.git] / lib / Reaction / UI / Widget / GridView / Entity.pm
CommitLineData
b8faba69 1package Reaction::UI::Widget::GridView::Entity;
2
3use Reaction::UI::WidgetClass;
4
5class 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
141;
15
16__END__;
17
18
19=head1 NAME
20
21Reaction::UI::Widget::GridView::Entity
22
23=head1 DESCRIPTION
24
25=head1 FRAGMENTS
26
27=head2 widget
28
29Additional variables available in topic hash: "viewport".
30
31Renders "fields"
32
33=head2 fields
34
35Sequentially renders the C<fields> of the viewport as "field"
36
37=head2 field
38
39renders the cell value
40
41=head1 AUTHORS
42
43See L<Reaction::Class> for authors.
44
45=head1 LICENSE
46
47See L<Reaction::Class> for the license.
48
49=cut