Peter Karman > Rose-HTMLx-Form-Field-PopUpMenuNumeric-0.001 > Rose::HTMLx::Form::Field::PopUpMenuNumeric

Download:
Rose-HTMLx-Form-Field-PopUpMenuNumeric-0.001.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.001   Source  

NAME ^

Rose::HTMLx::Form::Field::PopUpMenuNumeric - popup menu for numeric values

SYNOPSIS ^

 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

DESCRIPTION ^

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.

METHODS ^

Only new or overridden method are documented here.

internal_value

Cribbed verbatim from Rose::HTML::Form::Field::Numeric.

validate

Cribbed nearly verbatim from Rose::HTML::Form::Field::Numeric.

AUTHOR ^

Peter Karman, <karman@cpan.org>

BUGS ^

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.

ACKNOWLEDGEMENTS ^

The Minnesota Supercomputing Institute http://www.msi.umn.edu/ sponsored the development of this software.

COPYRIGHT & LICENSE ^

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.

syntax highlighting: