1 package Reaction::UI::Widget::Field::Image;
3 use Reaction::UI::WidgetClass;
5 use namespace::clean -except => [ qw(meta) ];
6 extends 'Reaction::UI::Widget::Field';
10 implements fragment image {
11 if($_{viewport}->value_string) {
12 arg uri => $_{viewport}->uri;
19 __PACKAGE__->meta->make_immutable;
27 Reaction::UI::Widget::Field::Image - An image field
31 This L<Reaction::UI::Widget::Field> widget represents an image.
37 If the viewport's C<value_string> is true, it will render the C<has_image>
38 fragment after setting the C<uri> argument to the value of the viewport's
41 If the C<value_string> is false the C<no_image> fragment will be rendered.
47 =item * L<Reaction::UI::Widget::Field>
49 =item * L<Reaction::UI::Widget::Value::Image>
55 See L<Reaction::Class> for authors.
59 See L<Reaction::Class> for the license.