Commit | Line | Data |
36fb39fa |
1 | package Reaction::UI::ViewPort::URI; |
2 | |
3 | use Reaction::Class; |
4 | use namespace::clean -except => [ qw(meta) ]; |
7b5e71ad |
5 | use MooseX::Types::URI qw/Uri/; |
36fb39fa |
6 | extends 'Reaction::UI::ViewPort'; |
7 | |
7b5e71ad |
8 | has uri => ( is => 'rw', isa => Uri, required => 1); |
36fb39fa |
9 | has display => ( is => 'rw' ); |
10 | |
11 | __PACKAGE__->meta->make_immutable; |
12 | |
13 | 1; |
7ea09fbb |
14 | |
15 | __END__; |
16 | |
17 | |
18 | =head1 NAME |
19 | |
20 | Reaction::UI::ViewPort::URI |
21 | |
22 | =head1 DESCRIPTION |
23 | |
24 | Viewport for a URI object |
25 | |
26 | =head1 ATTRIBUTES |
27 | |
28 | =head2 uri |
29 | |
30 | Required URI object representing the URI you wish to point to. |
31 | |
32 | =head2 display |
33 | |
34 | Optional. How this item will be displayed. Current implementations support |
35 | a plain string or a ViewPort object for this value |
36 | |
37 | =head1 AUTHORS |
38 | |
39 | See L<Reaction::Class> for authors. |
40 | |
41 | =head1 LICENSE |
42 | |
43 | See L<Reaction::Class> for the license. |
44 | |
45 | =cut |