Kent Fredric │‫3﹪🔋
and 1 contributors

NAME

Spark::Form::Field::Role::Printable::HTML - a HTML4-printable form field role

VERSION

version 0.2102

SYNOPSIS

 package MyApp::Form::Field::CustomText;
 use Moose;
 extends 'Spark::Form::Field';
 with 'Spark::Form::Field::Role::Printable::HTML';
 use HTML::Tiny;

 sub to_html {
     my ($self) = @_;
     my $html = HTML::Tiny->new( mode => 'html' );
     $html->input({type => 'text', value => $self->value});
 }

METHODS

to_html :: Undef => Str

This function should return a HTML string representing your control

SEE ALSO

Spark::Form::Field

AUTHOR

  James Laver L<http://jameslaver.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2009 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.