1 package Reaction::UI::Widget::Image;
3 use Reaction::UI::WidgetClass;
4 use namespace::clean -except => [ qw(meta) ];
6 before fragment widget {
10 ($vp->has_width ? (width => $vp->width) : ()),
11 ($vp->has_height ? (height => $vp->height) : ()),
13 arg img_attrs => attrs( $attrs );
16 __PACKAGE__->meta->make_immutable;
24 Reaction::UI::Widget::Image - An image with optional height and width properties
32 The widget layout will be provided with an additional C<img_attrs> argument containing
33 a rendered string of the image's attributes containing:
39 The return value of the viewports C<uri> method.
43 The value of the viewports C<width> attribute if one was found.
47 The value of the viewports C<height> attribute if one was found.
53 share/skin/base/layout/image.tt
57 See L<Reaction::Class> for authors.
61 See L<Reaction::Class> for the license.