Reaction::UI::Widget::Action::Link - A hyperlink representing an object mutation


Reaction documentation Contained in the Reaction distribution.

Index


Code Index:

NAME

Top

Reaction::UI::Widget::Action::Link - A hyperlink representing an object mutation

DESCRIPTION

Top

FRAGMENTS

Top

widget

The following additional arguments are provided:

uri

The viewport's uri.

label

The localised value of the viewport's label.

LAYOUT SETS

Top

base

  share/skin/base/layout/action/link.tt

The following layouts are provided:

widget

Renders a hyperlink with a href attribute set to the uri argument and the content set to the label argument.

default

  share/skin/default/layout/action/link.tt

This layout set extends the NEXT layout set with the same name in the parent skin.

The following layouts are provided:

widget

Renders a br element after the original widget fragment.

SEE ALSO

Top

* Reaction::UI::Widget::Action

AUTHORS

Top

See Reaction::Class for authors.

LICENSE

Top

See Reaction::Class for the license.


Reaction documentation Contained in the Reaction distribution.

package Reaction::UI::Widget::Action::Link;

use Reaction::UI::WidgetClass;

#I want to change this at some point.
use namespace::clean -except => [ qw(meta) ];


before fragment widget {
  arg uri => $_{viewport}->uri;
  arg label => localized $_{viewport}->label;
};

__PACKAGE__->meta->make_immutable;


1;

__END__;