Commit | Line | Data |
e22de101 |
1 | package Reaction::UI::Widget::Value::List; |
2 | |
3 | use Reaction::UI::WidgetClass; |
4 | |
5 | class List, which { |
6bc27bd3 |
6 | fragment widget [ qw/list/ ]; |
7 | fragment list [ item over func('viewport', 'value_names') ]; |
8 | fragment item [ 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 |