HTML::...iogroup(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– HTML::FormFu::Element::Radiogroup β€” bestie edition πŸ’–

okay so this is a page from the User Contributed Perl Documentation for HTML::FormFu::Element::Radiogroup, and honestly? it's giving "let me hold your hand while you build a radio button group". sit down, get comfy 🫢


✨ NAME ✨

HTML::FormFu::Element::Radiogroup β€” literally just a Group of radiobutton form fields. that's it. that's the whole vibe. no cap. πŸŽ€


🌸 VERSION 🌸

version 2.07 β€” yes bestie, we're on 2.07, iconic behavior πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the YAML config, look at her:

---
elements:
  - type: Radiogroup
    name: sex
    options:
      - [ 'm', 'Male' ]
      - [ 'f', 'Female' ]

see how clean that is?? type: Radiogroup, a name, and a lil options list of pairs. slay. ✨


πŸ’œ DESCRIPTION πŸ’œ

So convenient to use a group of radio button fields. Like, genuinely. it's the move. 😌

Now listen β€” if you wanna make RadioGroup sub-groups, you use the same syntax you'd use to create a Select element optgroup. the full deets live over in "options" in HTML::FormFu::Role::Element::Group. go read that when you need it, bestie, it's all there πŸ“š


πŸ‘‘ METHODS πŸ‘‘

🌈 options

See "options" in HTML::FormFu::Role::Element::Group. (yes, just go there, she's the main character of options) πŸ’«

🌈 values

See "values" in HTML::FormFu::Role::Element::Group. πŸ’«

🌈 value_range

See "value_range" in HTML::FormFu::Role::Element::Group. πŸ’«

🌈 empty_first

See "empty_first" in HTML::FormFu::Role::Element::Group. πŸ’«

🌈 auto_id

Okay so auto_id does everything documented in "auto_id" in HTML::FormFu, plus one extra lil treat: %c gets replaced by an incremented integer, so you literally never get duplicated ID's. obsessed. πŸ”₯

here's the config flex:

---
elements:
  type: Radiogroup
  name: foo
  auto_id: "%n_%c"

🌈 reverse_group

See "reverse_group" in HTML::FormFu::Element::Checkboxgroup. πŸ’«


πŸ’€ DEPRECATED METHODS πŸ’€

heads up bestie, this one's on the way out. don't build your whole personality around it.

radiogroup_filename

that's it. that's the deprecated one. rest in peace πŸͺ¦πŸ™ˆ


🧚 SEE ALSO 🧚

she is a sub-class of, and inherits methods from, all of these absolute queens:

  • HTML::FormFu::Element::Checkboxgroup
  • HTML::FormFu::Role::Element::Group
  • HTML::FormFu::Role::Element::Field
  • HTML::FormFu::Element

and also:

  • HTML::FormFu

πŸ’– AUTHOR πŸ’–

Carl Franks, cfranks@cpan.org 🌸


πŸ“œ LICENSE πŸ“œ

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. fr fr, go wild (within the terms). πŸ’…


πŸ’– AUTHOR (again, yes, she's listed twice and we love that for her) πŸ’–

Carl Franks <cpan@fireartist.com> 🫢


This software is copyright (c) 2018 by Carl Franks. ⭐

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt. ✨


and that's the whole page, bestie!! 🌈 this one came from perl v5.28.1, dated 2019-01-12, and the original header was HTML::...iogroup(3pm) β€” mwah, go forth and radio-button responsibly πŸ’œπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from