simplify value widgets to reduce PROCESS calls, make some classes immutable which...
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Value / List.pm
CommitLineData
e22de101 1package Reaction::UI::Widget::Value::List;
2
3use Reaction::UI::WidgetClass;
4
5class List, which {
a5200252 6 widget renders [ qw/list/ => { viewport => func(self => 'viewport') } ];
e22de101 7 list renders [ item over func('viewport', 'value_names') ];
a5200252 8 item renders [ string {""} ], { value => $_ };
e22de101 9};
10
111;
12
13__END__;
14
15=head1 NAME
16
17Reaction::UI::Widget::Value::List
18
19=head1 DESCRIPTION
20
21=head1 FRAGMENTS
22
23=head2 widget
24
25renders C<label> passing additional variable "viewport"
26
27=head2 list
28
29renders fragment item over the viewport's C<value_names>
30
31=head2 item
32
33C<content> contains the value of the current item ($_ / $_{_})
34
35=head1 AUTHORS
36
37See L<Reaction::Class> for authors.
38
39=head1 LICENSE
40
41See L<Reaction::Class> for the license.
42
43=cut