Spark::Form::Field::Role::Printable - Printability for form fields
version 0.2102
A fairly free-form module, this is mostly used for checking that it's printable at all. You probably want one of the roles under this hierarchy, but not just this one.
package MyApp::Field::CustomText; use Moose; extends 'Spark::Form::Field'; with 'Spark::Form::Field::Role::Printable'; sub to_string { my $self = shift; sprintf("%s: %s",$self->label, $self->value); }
A label that will be printed next to said field in the printed out version
James Laver L<http://jameslaver.com>
This software is copyright (c) 2009 by James Laver <sprintf qw(%s@%s.%s cpan jameslaver com)>.
<sprintf qw(%s@%s.%s cpan jameslaver com)>
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Spark::Form, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Spark::Form
CPAN shell
perl -MCPAN -e shell install Spark::Form
For more information on module installation, please visit the detailed CPAN module installation guide.