search spec components factored out of T365
[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 - Widget to implement rendering of an object
33
34 =head1 DESCRIPTION
35
36 =head1 FRAGMENTS
37
38 =head2 container_list
39
40 Sequentially renders the C<fields> of the viewport found in its C<containers>
41 method return values.
42
43 =head2 container
44
45 Renders the C<field> viewport passed by C<container_list>.
46
47 =head1 DEPRECATED FRAGMENTS
48
49 =head2 field_list
50
51 Sequentially renders the C<fields> of the viewport;
52
53 =head2 field
54
55 Renders the C<field> viewport passed by C<field_list>
56
57 =head1 LAYOUT SETS
58
59 =head2 base
60
61   share/skin/base/layout/object.tt
62
63 The following layouts are provided:
64
65 =over 4
66
67 =item widget
68
69 Renders the C<container_list> fragment.
70
71 =item container
72
73 Renders the container viewport.
74
75 =back
76
77 =head2 default
78
79   share/skin/default/layout/object.tt
80
81 This layout set inherits from the one with the same name in the C<base> skin.
82
83 The following layouts are provided:
84
85 =over 4
86
87 =item container
88
89 Renders the container viewport.
90
91 =back
92
93 =head1 AUTHORS
94
95 See L<Reaction::Class> for authors.
96
97 =head1 LICENSE
98
99 See L<Reaction::Class> for the license.
100
101 =cut