HTML::...iogroup(3pm)
π 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::CheckboxgroupHTML::FormFu::Role::Element::GroupHTML::FormFu::Role::Element::FieldHTML::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> π«Ά
π COPYRIGHT AND LICENSE π
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
- debian bookworm: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms