Kent Fredric > Spark-Form > Spark::Form::Field::Role::Printable::HTML

Download:
Spark-Form-0.2102.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.2102   Source   Latest Release: Spark-Form-0.2103-TRIAL

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.

syntax highlighting: