r15165@deathmachine (orig r402): groditi | 2007-11-14 13:33:11 -0500
[catagits/Reaction.git] / lib / Reaction / UI / Widget / DisplayField.pm
CommitLineData
5a1a893e 1package Reaction::UI::Widget::DisplayField;
2
3use Reaction::UI::WidgetClass;
4
6ab43711 5class DisplayField, which {
b8faba69 6 widget renders [ qw/label value/ ];
5a1a893e 7 label renders [ string { $_{viewport}->label } ];
8 value renders [ string { $_{viewport}->value } ];
9};
10
111;
12
6ab43711 13__END__;
14
5a1a893e 15=head1 NAME
16
17Reaction::UI::Widget::DisplayField
18
19=head1 DESCRIPTION
20
21=head1 FRAGMENTS
22
23=head2 widget
24
25Additional variables available in topic hash: "viewport".
26
27Renders "label" and "field"
28
29=head2 field
30
31 C<content> will contain the value, if any, of the field.
32
33=head2 label
34
35 C<content> will contain the label, if any, of the field.
36
37=head1 AUTHORS
38
39See L<Reaction::Class> for authors.
40
41=head1 LICENSE
42
43See L<Reaction::Class> for the license.
44
45=cut