HTML::...Simple(3pm)

πŸ“¦
version 0.40068 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute

🌸 NAME 🌸

Okay bestie, welcome to HTML::...Simple(3pm) from the User Contributed Perl Documentation πŸ’…. This page is all about HTML::FormHandler::Widget::Wrapper::Simple β€” aka the simple field wrapper. It’s giving β€œsmall role, big main character energy” ✨.

πŸ’– VERSION πŸ’–

version 0.40068 β€” stamped, noted, and slaying πŸŽ€.

πŸ¦‹ SYNOPSIS πŸ¦‹

Okay so this is the default wrapper role, no cap. It will be installed if no other wrapper is specified and widget_wrapper is not set to 'none'. Periodt.

Relevant field flags β€” the little switches you gotta know:

  • do_wrapper
  • do_label

If 'do_label' is set and not 'do_wrapper', only the label plus the form element will be rendered. Like, that’s the whole vibe: label + element, together, but no wrapper.

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

πŸ‘‘ AUTHOR πŸ‘‘

FormHandler Contributors - see HTML::FormHandler β€” that’s the author situation, bestie πŸ’–. They said see HTML::FormHandler, so go look πŸ‘€.

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. No cap 🫢.


πŸ’‹ Mwah! Signed off with perl v5.34.0, dated 2022-03-25, on the HTML::...Simple(3pm) page β€” bye bestie! πŸ¦‹

πŸ“¦ where this page comes from