do not include .git directory
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Action / Link.pm
CommitLineData
2f670e13 1package Reaction::UI::Widget::Action::Link;
b8faba69 2
3use Reaction::UI::WidgetClass;
4
2f670e13 5#I want to change this at some point.
bae75bee 6use namespace::clean -except => [ qw(meta) ];
aa8c0c90 7
aa8c0c90 8
bae75bee 9before fragment widget {
10 arg uri => $_{viewport}->uri;
d219104c 11 arg label => localized $_{viewport}->label;
b8faba69 12};
13
bae75bee 14__PACKAGE__->meta->make_immutable;
15
16
b8faba69 171;
18
19__END__;
20
f9b32c83 21=head1 NAME
22
23Reaction::UI::Widget::Action::Link - A hyperlink representing an object mutation
24
25=head1 DESCRIPTION
26
27=head1 FRAGMENTS
28
29=head2 widget
30
31The following additional arguments are provided:
32
33=over 4
34
35=item uri
36
37The viewport's C<uri>.
38
39=item label
40
41The localised value of the viewport's C<label>.
42
43=back
44
45=head1 LAYOUT SETS
46
47=head2 base
48
49 share/skin/base/layout/action/link.tt
50
51The following layouts are provided:
52
53=over 4
54
55=item widget
56
57Renders a hyperlink with a C<href> attribute set to the C<uri> argument and
58the content set to the C<label> argument.
59
60=back
61
62=head2 default
63
64 share/skin/default/layout/action/link.tt
65
66This layout set extends the C<NEXT> layout set with the same name in the parent
67skin.
68
69The following layouts are provided:
70
71=over 4
72
73=item widget
74
75Renders a C<br> element after the original C<widget> fragment.
76
77=back
78
79=head1 SEE ALSO
80
81=over 4
82
83=item * L<Reaction::UI::Widget::Action>
84
85=back
86
87=head1 AUTHORS
88
89See L<Reaction::Class> for authors.
90
91=head1 LICENSE
92
93See L<Reaction::Class> for the license.
94
95=cut