John Siracusa > Rose-HTML-Objects-0.620 > Rose::HTML::Form::Field::File

Download:
Rose-HTML-Objects-0.620.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.606   Source   Latest Release: Rose-HTML-Objects-0.621

NAME ^

Rose::HTML::Form::Field::File - Object representation of a file upload field in an HTML form.

SYNOPSIS ^

    $field =
      Rose::HTML::Form::Field::File->new(
        label => 'File', 
        name  => 'file',
        size  => 32);

    print $field->html;

    ...

DESCRIPTION ^

Rose::HTML::Form::Field::File is an object representation of a file upload field in an HTML form.

This class inherits from, and follows the conventions of, Rose::HTML::Form::Field. Inherited methods that are not overridden will not be documented a second time here. See the Rose::HTML::Form::Field documentation for more information.

HTML ATTRIBUTES ^

Valid attributes:

    accept
    accesskey
    checked
    class
    dir
    disabled
    id
    lang
    maxlength
    name
    onblur
    onchange
    onclick
    ondblclick
    onfocus
    onkeydown
    onkeypress
    onkeyup
    onmousedown
    onmousemove
    onmouseout
    onmouseover
    onmouseup
    onselect
    readonly
    size
    style
    tabindex
    title
    type
    value
    xml:lang

Required attributes (default values in parentheses):

    name
    size
    type (file)
    value

Boolean attributes:

    checked
    disabled
    readonly

CONSTRUCTOR ^

new PARAMS

Constructs a new Rose::HTML::Form::Field::File object based on PARAMS, where PARAMS are name/value pairs. Any object method is a valid parameter name.

AUTHOR ^

John C. Siracusa (siracusa@gmail.com)

LICENSE ^

Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: