ObjectView converted
[catagits/Reaction.git] / lib / Reaction / UI / Widget / DisplayField.pm
1 package Reaction::UI::Widget::DisplayField;
2
3 use Reaction::UI::WidgetClass;
4
5 class DisplayField, which {
6
7   before fragment widget {
8     arg label => $_{viewport}->label;
9     arg value => $_{viewport}->value_string;
10   };
11
12 };
13
14 1;
15
16 __END__;
17
18 =head1 NAME
19
20 Reaction::UI::Widget::DisplayField
21
22 =head1 DESCRIPTION
23
24 =head1 FRAGMENTS
25
26 =head2 widget
27
28 Additional variables available in topic hash: "viewport".
29
30 Renders "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
42 See L<Reaction::Class> for authors.
43
44 =head1 LICENSE
45
46 See L<Reaction::Class> for the license.
47
48 =cut