X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FReaction%2FUI%2FViewPort%2FField%2FNumber.pm;h=e8bab8a8b7dbdf1a1bc2fb56f01046c04312bfec;hb=HEAD;hp=f66e03d8fdc0da14bbea02b9375300017b89e12f;hpb=6ab43711ccd779eedce107001b300043e2056a0c;p=catagits%2FReaction.git diff --git a/lib/Reaction/UI/ViewPort/Field/Number.pm b/lib/Reaction/UI/ViewPort/Field/Number.pm index f66e03d..e8bab8a 100644 --- a/lib/Reaction/UI/ViewPort/Field/Number.pm +++ b/lib/Reaction/UI/ViewPort/Field/Number.pm @@ -1,31 +1,13 @@ package Reaction::UI::ViewPort::Field::Number; use Reaction::Class; +use namespace::clean -except => [ qw(meta) ]; +use MooseX::Types::Moose qw/Num/; -class Number is 'Reaction::UI::ViewPort::Field', which { +extends 'Reaction::UI::ViewPort::Field'; - #has '+layout' => (default => 'textfield'); +has '+value' => (isa => Num); -}; +__PACKAGE__->meta->make_immutable; 1; - -=head1 NAME - -Reaction::UI::ViewPort::Field::Number - -=head1 DESCRIPTION - -=head1 SEE ALSO - -=head2 L - -=head1 AUTHORS - -See L for authors. - -=head1 LICENSE - -See L for the license. - -=cut