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