dc898ccd5a3071975a8e75ad33309c9a7a933e95
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Object.pm
1 package Reaction::UI::Widget::Object;
2
3 use Reaction::UI::WidgetClass;
4
5 use namespace::clean -except => [ qw(meta) ];
6
7
8 implements fragment field_list {
9   render field => over $_{viewport}->fields;
10 };
11
12 implements fragment field {
13   render 'viewport';
14 };
15
16 __PACKAGE__->meta->make_immutable;
17
18
19 1;
20
21 __END__;
22
23 =head1 NAME
24
25 Reaction::UI::Widget::Object
26
27 =head1 DESCRIPTION
28
29 =head1 FRAGMENTS
30
31 =head2 field_list
32
33 Sequentially renders the C<fields> of the viewport in the C<computed_field_order>
34
35 =head2 field
36
37 Renders the C<field> viewport passed by C<field_list>
38
39 =head1 AUTHORS
40
41 See L<Reaction::Class> for authors.
42
43 =head1 LICENSE
44
45 See L<Reaction::Class> for the license.
46
47 =cut