a44a66dfbd5996e5bd6b638dedc25916920e708a
[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 implements fragment container_list {
8   render container => over $_{viewport}->containers;
9 };
10
11 implements fragment container {
12   render 'viewport';
13 };
14
15 #we won't be needing these anymore
16 implements fragment field_list {
17   render field => over $_{viewport}->fields;
18 };
19
20 implements fragment field {
21   render 'viewport';
22 };
23
24 __PACKAGE__->meta->make_immutable;
25
26 1;
27
28 __END__;
29
30 =head1 NAME
31
32 Reaction::UI::Widget::Object
33
34 =head1 DESCRIPTION
35
36 =head1 FRAGMENTS
37
38 =head2 container_list
39
40 Sequentially renders the C<fields> of the viewport;
41
42 =head2 container
43
44 Renders the C<field> viewport passed by C<field_list>
45
46 =head1 DEPRECATED FRAGMENTS
47
48 =head2 field_list
49
50 Sequentially renders the C<fields> of the viewport;
51
52 =head2 field
53
54 Renders the C<field> viewport passed by C<field_list>
55
56 =head1 AUTHORS
57
58 See L<Reaction::Class> for authors.
59
60 =head1 LICENSE
61
62 See L<Reaction::Class> for the license.
63
64 =cut