NAME

Reaction::UI::Widget::URI - A hyperlink reference by URI value

DESCRIPTION

This widget allows a layout template to render a hyperlink with either a simple string or another viewport as the contents of the link.

FRAGMENTS

widget

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.

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.

display_fragment is only implemented in the widget class.

display_string

Only implemented in the layout set. This will simply output the value of the string_value argument as content of the hyperlink element.

LAYOUT SET

share/skin/base/layout/uri.tt

This layout set will look for a widget called URI in the widget_search_path.

AUTHORS

See Reaction::Class for authors.

LICENSE

See Reaction::Class for the license.