aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/Widget/Value.pm
blob: 07db1c0bcf2f7019508f292618e0a738d381d13e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package Reaction::UI::Widget::Value;

use Reaction::UI::WidgetClass;

class Value, which {
  widget renders [ qw/value/ => { viewport => func(self => 'viewport') } ];
  value  renders [ string { $_{viewport}->value } ];
};

1;

__END__;

=head1 NAME

Reaction::UI::Widget::Value

=head1 DESCRIPTION

=head1 FRAGMENTS

=head2 widget

Additional variables available in topic hash: "viewport".

Renders "label" and "field"

=head2 field

 C<content> will contain the value, if any,  of the field.

=head1 AUTHORS

See L<Reaction::Class> for authors.

=head1 LICENSE

See L<Reaction::Class> for the license.

=cut