Commit | Line | Data |
---|---|---|
2f670e13 | 1 | package Reaction::UI::Widget::Object; |
7b78a39d | 2 | |
3 | use Reaction::UI::WidgetClass; | |
4 | ||
bae75bee | 5 | use namespace::clean -except => [ qw(meta) ]; |
d7b00a50 | 6 | |
599c1172 | 7 | implements fragment container_list { |
8 | render container => over $_{viewport}->containers; | |
9 | }; | |
10 | ||
11 | implements fragment container { | |
12 | render 'viewport'; | |
13 | }; | |
d7b00a50 | 14 | |
599c1172 | 15 | #we won't be needing these anymore |
bae75bee | 16 | implements fragment field_list { |
17 | render field => over $_{viewport}->fields; | |
18 | }; | |
d7b00a50 | 19 | |
bae75bee | 20 | implements fragment field { |
21 | render 'viewport'; | |
7b78a39d | 22 | }; |
23 | ||
bae75bee | 24 | __PACKAGE__->meta->make_immutable; |
25 | ||
7b78a39d | 26 | 1; |
27 | ||
28 | __END__; | |
29 | ||
5a1a893e | 30 | =head1 NAME |
7b78a39d | 31 | |
f9b32c83 | 32 | Reaction::UI::Widget::Object - Widget to implement rendering of an object |
7b78a39d | 33 | |
5a1a893e | 34 | =head1 DESCRIPTION |
35 | ||
36 | =head1 FRAGMENTS | |
37 | ||
599c1172 | 38 | =head2 container_list |
39 | ||
f9b32c83 | 40 | Sequentially renders the C<fields> of the viewport found in its C<containers> |
41 | method return values. | |
599c1172 | 42 | |
43 | =head2 container | |
44 | ||
f9b32c83 | 45 | Renders the C<field> viewport passed by C<container_list>. |
599c1172 | 46 | |
47 | =head1 DEPRECATED FRAGMENTS | |
48 | ||
6bc27bd3 | 49 | =head2 field_list |
5a1a893e | 50 | |
599c1172 | 51 | Sequentially renders the C<fields> of the viewport; |
5a1a893e | 52 | |
49170400 | 53 | =head2 field |
54 | ||
55 | Renders the C<field> viewport passed by C<field_list> | |
56 | ||
f9b32c83 | 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 | ||
5a1a893e | 93 | =head1 AUTHORS |
94 | ||
95 | See L<Reaction::Class> for authors. | |
96 | ||
97 | =head1 LICENSE | |
98 | ||
99 | See L<Reaction::Class> for the license. | |
7b78a39d | 100 | |
101 | =cut |