blob: 0c406705eb16e5297457390fc62b0c02b93bbee5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
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__;
=head1 NAME
Reaction::UI::Widget::Action::Link - A hyperlink representing an object mutation
=head1 DESCRIPTION
=head1 FRAGMENTS
=head2 widget
The following additional arguments are provided:
=over 4
=item uri
The viewport's C<uri>.
=item label
The localised value of the viewport's C<label>.
=back
=head1 LAYOUT SETS
=head2 base
share/skin/base/layout/action/link.tt
The following layouts are provided:
=over 4
=item widget
Renders a hyperlink with a C<href> attribute set to the C<uri> argument and
the content set to the C<label> argument.
=back
=head2 default
share/skin/default/layout/action/link.tt
This layout set extends the C<NEXT> layout set with the same name in the parent
skin.
The following layouts are provided:
=over 4
=item widget
Renders a C<br> element after the original C<widget> fragment.
=back
=head1 SEE ALSO
=over 4
=item * L<Reaction::UI::Widget::Action>
=back
=head1 AUTHORS
See L<Reaction::Class> for authors.
=head1 LICENSE
See L<Reaction::Class> for the license.
=cut
|