NAME
Spark::Form::Field::Role::Printable - Printability for form fields
VERSION
version 0.2103
SYNOPSIS
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);
}
DESCRIPTION
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.
VARS
label :: Str [Optional]
A label that will be printed next to said field in the printed out version
SEE ALSO
- Spark::Form::Field::Printable::HTML - Role for being printable under HTML4
- Spark::Form::Field::Printable::XHTML - Role for being printable under XHTML1
AUTHOR
James Laver http://jameslaver.com
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by James Laver <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.