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