Commit | Line | Data |
---|---|---|
e22de101 | 1 | package Reaction::UI::Widget::Value; |
2 | ||
3 | use Reaction::UI::WidgetClass; | |
4 | ||
5 | class Value, which { | |
aa8c0c90 | 6 | |
7 | before fragment widget { | |
8154c987 | 8 | if ($_{viewport}->can('value_string')) { |
9 | arg value => $_{viewport}->value_string; | |
10 | } elsif($_{viewport}->can('value')) { | |
11 | arg value => $_{viewport}->value; | |
12 | } | |
aa8c0c90 | 13 | }; |
14 | ||
e22de101 | 15 | }; |
16 | ||
17 | 1; | |
18 | ||
19 | __END__; | |
20 | ||
21 | =head1 NAME | |
22 | ||
23 | Reaction::UI::Widget::Value | |
24 | ||
25 | =head1 DESCRIPTION | |
26 | ||
27 | =head1 FRAGMENTS | |
28 | ||
29 | =head2 widget | |
30 | ||
49170400 | 31 | Additional available arguments |
e22de101 | 32 | |
49170400 | 33 | =over 4 |
e22de101 | 34 | |
8154c987 | 35 | =item B<value> - The C<value_string> or C<value> of the viewport |
e22de101 | 36 | |
49170400 | 37 | =back |
e22de101 | 38 | |
39 | =head1 AUTHORS | |
40 | ||
41 | See L<Reaction::Class> for authors. | |
42 | ||
43 | =head1 LICENSE | |
44 | ||
45 | See L<Reaction::Class> for the license. | |
46 | ||
47 | =cut |