package Reaction::UI::Widget::Value; use Reaction::UI::WidgetClass; use namespace::clean -except => [ qw(meta) ]; before fragment widget { if ($_{viewport}->can('value_string')) { arg value => $_{viewport}->value_string; } elsif($_{viewport}->can('value')) { arg value => $_{viewport}->value; } }; __PACKAGE__->meta->make_immutable; 1; __END__; =head1 NAME Reaction::UI::Widget::Value =head1 DESCRIPTION This widget provides the return value of the C or C method on the viewport (depending on which is available first) via the C argument to widget. =head1 INCLUDED SUBCLASSES =over =item L Will simply display the C. =item L This widget iterates over a collection of values provided by the viewport and renders an unordered list out of them. =item L A simple subclass of L, currently not doing much. =item L Provides C and C blocks that will be rendered depending on the viewports C attribute. The defaults are to either render an image tag, or to output nothing at all. =item L A simple subclass of C that doesn't do much yet. =item L A simple subclass of C that doesn't do much yet. =item L A simple subclass of C that doesn't do much yet. =item L A simple subclass of C that doesn't do much yet. =back =head1 FRAGMENTS =head2 widget Additional available arguments =over 4 =item B - The C or C of the viewport =back =head1 AUTHORS See L for authors. =head1 LICENSE See L for the license. =cut