NAME

HTML::Widget::Plugin::Image - an image object

SYNOPSIS

$widget_factory->image({
  src => 'http://example.com/example.jpg',
  alt => 'An Example Image',
});

DESCRIPTION

This plugin provides a basic image widget.

METHODS

provided_widgets

This plugin provides the following widgets: image

image

This method returns a basic image element.

In addition to the generic HTML::Widget::Plugin attributes, the following are valid arguments:

src

This is the source href for the image. "href" is a synonym for src. If no href is supplied, an exception is thrown.

alt

This is the alt text for the image.

AUTHOR

Ricardo SIGNES <rjbs @ cpan.org>

COPYRIGHT

Copyright (C) 2007, Ricardo SIGNES. This is free software, released under the same terms as perl itself.