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
as_xml
Return Value: $xml_build_element
Arguments: $elementReturn Value: @elements
Convert $element to HTML::Element object. Accepts arrayref.
If you wish to change the rendering behaviour of HTML::Widget; specifically, the handling of elements which are array-refs, you can specify ``container_class'' in HTML::Widget::Element to a custom class which just overrides this function.
build_single_element
Arguments: $elementReturn Value: $element
Convert $element to HTML::Element object.
Called by ``_build_element''.
If you wish to change the rendering behaviour of HTML::Widget; specifically, the handling of an individual element, you can override this function.
build_element_error
Arguments: $elementReturn Value: $element
Called by ``build_single_element''.
If you wish to change how an error is rendered, override this function.
build_element_label
Arguments: $element, $classReturn Value: $element
Called by ``build_single_element''.
If you wish to change how an element's label is rendered, override this function.
The $class argument is the original class of the element, before ``build_element_error'' was called.
as_list
Return Value: @elementsReturns a list of HTML::Element objects.
element
field
Arguments: $element``field'' is an alias for ``element''.
element_xml
field_xml
Return Value: $xml``field_xml'' is an alias for ``element_xml''.
error
Arguments: $errorReturn Value: $error
error_xml
Return Value: $xmljavascript
js
Arguments: $javascriptReturn Value: $javascript
``js'' is an alias for ``javascript''.
javascript_element
Return Value: $javascript_elementReturns javascript in a script HTML::Element.
javascript_xml
js_xml
Return Value: $javascript_xmlReturns javascript in a script block.
``js_xml'' is an alias for ``javascript_xml''.
AUTHOR
Sebastian Riedel, "[email protected]"LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.