ObjectView converted
[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 {
d7b00a50 6
7 before fragment widget {
8 arg label => $_{viewport}->label;
9 arg value => $_{viewport}->value_string;
10 };
11
5a1a893e 12};
13
141;
15
6ab43711 16__END__;
17
5a1a893e 18=head1 NAME
19
20Reaction::UI::Widget::DisplayField
21
22=head1 DESCRIPTION
23
24=head1 FRAGMENTS
25
26=head2 widget
27
28Additional variables available in topic hash: "viewport".
29
30Renders "label" and "field"
31
32=head2 field
33
34 C<content> will contain the value, if any, of the field.
35
36=head2 label
37
38 C<content> will contain the label, if any, of the field.
39
40=head1 AUTHORS
41
42See L<Reaction::Class> for authors.
43
44=head1 LICENSE
45
46See L<Reaction::Class> for the license.
47
48=cut