NAME

HTML::Widget::Container - Container

SYNOPSIS

    my $container  = $form->element('foo');
    
    my $field = $container->field;
    my $error = $container->error;
	my $label = $container->label;

    my $field_xml      = $container->field_xml; 
    my $error_xml      = $container->error_xml;
    my $javascript_xml = $container->javascript_xml;

    my $xml = $container->as_xml;
	# $xml eq "$container"

    my $javascript = $container->javascript;

DESCRIPTION

Container.

METHODS

$self->as_xml

Returns xml.

$self->_build_element($self->element)

Convert $element to HTML::Element object. Accepts arrayref.

Most of the time if you wish to change the rendering behavoiur of HTML::Widget, you specify "container_class" in HTML::Widget::Element to a custom class which just overrides this function.

$self->as_list

Returns a list of HTML::Element objects.

$self->element($element)

$self->field_xml

$self->element_xml

Returns xml for element.

$self->error($error)

$self->error_xml

Returns xml for error.

$self->javascript

$self->javascript_element

Returns javascript in a script HTML::Element.

$self->js_xml

$self->javascript_xml

Returns javascript in a script block.

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.