switch over to sub style from AUTOLOAD style (Widget transition)
[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 {
6bc27bd3 6 fragment widget [ qw/list/ ];
27ebb686 7 fragment list [ item => over func('viewport', 'value_names') ];
6bc27bd3 8 fragment item [ 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