NAME

Form::Sensible::Field::Number - A Numeric field type.

SYNOPSIS

use Form::Sensible::Field::Number;

my $object = Form::Sensible::Field::Number->new( 
                                                    integer_only => 1,
                                                    lower_bound => 10,
                                                    upper_bound => 100,
                                                    step => 5,
                                                );

$object->do_stuff();

DESCRIPTION

The number field type is one of the more advanced field types in Form::Sensible. It has a number of features for dealing specifically with numbers. It can be set to have a lower and upper bound, allowing validation to ensure that the value selected is within a range. It can also be set to have a 'step', which provides a constraint to what values are valid between the upper and lower bounds. It can also be made to accept integers only, or fractional values.

Finally, it can be rendered in a number of ways including select boxes, drop downs or even ranged-sliders if your renderer supports it.

ATTRIBUTES

'integer_only' has =item 'lower_bound' has =item 'upper_bound' has =item 'step' has

METHODS

validate sub =item get_potential_values sub =item options sub =item in_step sub =item get_additional_configuration sub

AUTHOR

Jay Kuri - <jayk@cpan.org>

SPONSORED BY

Ionzero LLC. http://ionzero.com/

SEE ALSO

Form::Sensible

LICENSE

Copyright 2009 by Jay Kuri <jayk@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.