Jess Robinson > HTML-Widget-1.05 > HTML::Widget::Element

Download:
HTML-Widget-1.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  3
View/Report Bugs
Source   Latest Release: HTML-Widget-1.11

NAME ^

HTML::Widget::Element - Element Base Class

SYNOPSIS ^

    my $e = $widget->element( $type, $name );
    $e->attributes( { class => 'foo' } );
    $e->name('bar');
    $e->class('foo');

DESCRIPTION ^

Element Base Class.

METHODS ^

new

$self->container($attributes)

Creates a new HTML::Widget::Container.

$self->id($widget)

Creates a element id.

$self->init($widget)

Called once when process() gets called for the first time.

$self->mk_error( $w, $errors )

Creates a new HTML::Widget::Error.

$self->mk_input( $w, $attrs, $errors )

Creates a new input tag.

$self->mk_label( $w, $name )

Creates a new label tag.

name($name)

Contains the element name.

passive($passive)

Defines if element gets automatically rendered.

$self->prepare($widget)

Called whenever process() gets called.

$self->render

Render element.

AUTHOR ^

Sebastian Riedel, sri@oook.de

LICENSE ^

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

syntax highlighting: