ObjectView converted
[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:
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
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
6bc27bd3 31Renders "field_list"
b8faba69 32
6bc27bd3 33=head2 field_list
b8faba69 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