HTML::FormFu::Element::Image - Image button form field


HTML-FormFu documentation Contained in the HTML-FormFu distribution.

Index


Code Index:

NAME

Top

HTML::FormFu::Element::Image - Image button form field

SYNOPSIS

Top

    $e = $form->element( Image => 'foo' );

DESCRIPTION

Top

Image button form field.

METHODS

Top

SEE ALSO

Top

Is a sub-class of, and inherits methods from HTML::FormFu::Element::Button, HTML::FormFu::Element::_Input, HTML::FormFu::Element::_Field, HTML::FormFu::Element

HTML::FormFu

AUTHOR

Top

Carl Franks, cfranks@cpan.org

LICENSE

Top

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


HTML-FormFu documentation Contained in the HTML-FormFu distribution.

package HTML::FormFu::Element::Image;
use Moose;

extends 'HTML::FormFu::Element::Button';

__PACKAGE__->mk_attr_accessors(qw( src width height ));

after BUILD => sub {
    my $self = shift;

    $self->field_type('image');

    if ( !defined $self->src ) {
        $self->src('');
    }

    return;
};

__PACKAGE__->meta->make_immutable;

1;

__END__