Reaction::UI::Widget::URI - A hyperlink reference by URI value
This widget allows a layout template to render a hyperlink with either a simple string or another viewport as the contents of the link.
Before the widget fragment is rendered, the uri argument will be set to the return value of the uri method on the viewport. The layout will render a hyperlink with the uri as value of the href attribute and the display_fragment fragment as content of the element.
widget
uri
href
display_fragment
This will render nothing if the viewport doesn't return true when has_display is called on it. If it has a display defined and it is a viewport, the _ argument will be set to it and the viewport fragment (inherited from Reaction::UI::Widget will be rendered. If the display is not a viewport, the string_value argument will be set and the display_string layout will be rendered.
has_display
display
_
viewport
string_value
display_string
display_fragment is only implemented in the widget class.
Only implemented in the layout set. This will simply output the value of the string_value argument as content of the hyperlink element.
share/skin/base/layout/uri.tt
This layout set will look for a widget called URI in the widget_search_path.
URI
widget_search_path
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.