HTML::FormHandler::Widget::Wrapper::Simple - simple field wrapper
version 0.40068
This is the default wrapper role. It will be installed if no other wrapper is specified and widget_wrapper is not set to 'none'.
Relevant field flags:
do_wrapper
do_label
If 'do_label' is set and not 'do_wrapper', only the label plus the form element will be rendered.
Supported 'tags', all set via the 'tags' hashref on the field:
wrapper_tag -- the tag to use in the wrapper, default 'div'
label_tag -- tag to use for label (default 'label')
label_after -- string to append to label, for example ': ' to append a colon
before_element -- string that goes right before the element
after_element -- string that goes right after the element
no_errors -- don't issue error messages on the field
error_class -- class for error messages (default 'error_message')
warning_class -- class for warning messages (default 'warning_message' )
no_wrapped_label -- for checkboxes. Don't provide an inner wrapped label
(from Base wrapper)
Example:
has_field 'foo' => ( tags => { wrapper_tag => 'span', no_errors => 1 } );
FormHandler Contributors - see HTML::FormHandler
This software is copyright (c) 2017 by Gerda Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.