Rose::HTMLx::Form::Field::PopUpMenuNumeric - popup menu for numeric values
use Rose::HTMLx::Form::Field::PopUpMenuNumeric; my $menu = Rose::HTMLx::Form::Field::PopUpMenuNumeric->new( id => 'mynum', name => 'mynum', type => 'menu', class => 'numeric-popup', label => 'My Number', options => [qw( 1 2 3 )], labels => { 1 => 'one', 2 => 'two', 3 => 'three' }, ); $menu->input_value('1'); $menu->internal_value; # returns 1 $menu->input_value(''); $menu->internal_value; # returns undef
Rose::HTMLx::Form::Field::PopUpMenuNumeric is like a normal RHTMLO PopUpMenu but it returns an internal_value() like Rose::HTML::Form::Field::Numeric does.
This module exists mostly to ensure that popup menus representing numeric values properly return undef instead of an empty string -- an important distinction when you *really* want a numeric value and not a string.
Only new or overridden method are documented here.
Cribbed verbatim from Rose::HTML::Form::Field::Numeric.
Cribbed nearly verbatim from Rose::HTML::Form::Field::Numeric.
Peter Karman, <karman@cpan.org>
<karman@cpan.org>
Please report any bugs or feature requests to bug-rose-htmlx-form-field-popupmenunumeric@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-rose-htmlx-form-field-popupmenunumeric@rt.cpan.org
The Minnesota Supercomputing Institute http://www.msi.umn.edu/ sponsored the development of this software.
http://www.msi.umn.edu/
Copyright 2009 by the Regents of the University of Minnesota.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Rose::HTMLx::Form::Field::PopUpMenuNumeric, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rose::HTMLx::Form::Field::PopUpMenuNumeric
CPAN shell
perl -MCPAN -e shell install Rose::HTMLx::Form::Field::PopUpMenuNumeric
For more information on module installation, please visit the detailed CPAN module installation guide.