Reaction::UI::Widget::Value::Image - An image tag or non-image alternative
This widget allows you to render an image container that uses different fragments for available and non-available images.
Has only layout implementation. The widget fragment is inherited from Reaction::UI::Widget. The layout will simply render the image fragment. This fragment can be overwritten by your own layout to render, for example, a frame around the image.
image
Is only implemented in the widget. If the viewport has a true value in value_string, the uri argument will be set to the value of the uri attribute or method return value of the viewport, and the has_image fragment will be rendered.
value_string
uri
has_image
If value_string is false, the no_image fragment will be rendered.
no_image
This is only implemented in the layout file. It contains just an image tag and will be rendered when the viewport has a true value_string.
This has only an empty implementation in the layout file. It will output nothing and is called when then viewport has a false value_string.
share/skin/base/layout/value/image.tt
See Reaction::Class for authors.
See Reaction::Class for the license.
To install Reaction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Reaction
CPAN shell
perl -MCPAN -e shell install Reaction
For more information on module installation, please visit the detailed CPAN module installation guide.