logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::FormHandler::Widget::Wrapper::Simple - simple field wrapper

Author

       FormHandler Contributors - see HTML::FormHandler

Name

       HTML::FormHandler::Widget::Wrapper::Simple - simple field wrapper

Synopsis

       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 } );

Version

       version 0.40068

See Also