Form::Sensible::Field::Toggle - An on/off field
use Form::Sensible::Field::Toggle; my $object = Form::Sensible::Field::Toggle->new( on_value => '100', off_value => '0' );
The Toggle field type represents a simple on/off selector. A value is provided for both on and off states. A toggle can often be rendered in the same ways as a Select|Form::Sensible::Field::Select field type, as in most cases it can be treated as a select with only two options, on and off.
Select|Form::Sensible::Field::Select
'on_value'
The value to be used when the field is in the 'ON' state.
'off_value'
The value to be used when the field is in the 'OFF' state.
Jay Kuri - <jayk@cpan.org>
Ionzero LLC. http://ionzero.com/
Form::Sensible
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.
To install Form::Sensible, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Sensible
CPAN shell
perl -MCPAN -e shell install Form::Sensible
For more information on module installation, please visit the detailed CPAN module installation guide.