HTML::...xgroup(3pm)
β¨ HTML::FormFu::Element::Checkboxgroup β the manual page, bestie edition β¨
okay so real quick: this is the page for HTML::...xgroup(3pm) β which is the manpage for HTML::FormFu::Element::Checkboxgroup, from the User Contributed Perl Documentation section. yes the header truncates the name, no we're not gonna be weird about it. let's GO π
πΈ NAME πΈ
HTML::FormFu::Element::Checkboxgroup β a whole group of checkbox form fields, living together, thriving π
π VERSION π
version 2.07 β¨
π¦ SYNOPSIS π¦
YAML config, babes:
---
elements:
- type: Checkboxgroup
name: subjects
options:
- [ 'Math' ]
- [ 'Science' ]
- [ 'English' ]
look at her. three little checkboxes. so cute. so functional. π
π DESCRIPTION π
Convenient to use group of checkbox fields. that's the whole vibe, honestly β it's a handy little container so you're not hand-rolling a pile of checkboxes like some kind of gremlin.
wanna make Checkboxgroup sub-groups? then you use the exact same syntax you'd use to create an optgroup for a Select element. details are over in "options" in HTML::FormFu::Role::Element::Group β go peek, iykyk π₯
π METHODS π
options
See "options" in HTML::FormFu::Role::Element::Group. β¨
values
See "values" in HTML::FormFu::Role::Element::Group. β¨
value_range
See "value_range" in HTML::FormFu::Role::Element::Group. β¨
auto_id
okay so this one is the same as the substitutions documented by "auto_id" in HTML::FormFu, plus two extra little treats:
%cgets replaced by an incremented integer β this is the whole point, it makes sure there are no duplicated ID's, periodt π%vgets replaced by the item's value β so multiple elements with the same name can coexist peacefully, and their labels correctly select the appropriate item π«Ά
like so:
---
elements:
type: Checkboxgroup
name: foo
auto_id: "%n_%c"
reverse_group
If true, then the label for each checkbox in the checkbox group should be rendered to the right of the field control. Otherwise, the label is rendered to the left of the field control.
The default value is true, causing each label to be rendered to the right of its field control (or, to be explicit: the markup for the label comes after the field control in the source). icon behaviour fr fr π
Default Value: true
π SEE ALSO π
Is a sub-class of, and inherits methods from HTML::FormFu::Role::Element::Group, HTML::FormFu::Role::Element::Field, HTML::FormFu::Element β she's got family, she's got lineage, main character energy inherited from all of them π
HTML::FormFu β the mothership. go say hi.
π«Ά 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. slay, honestly.
π«Ά AUTHOR π«Ά
Carl Franks <cpan@fireartist.com> β yes, again, because the original page says it twice and we do NOT skip details in this house π
π 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.
ok that's the whole page, bestie, you ate that πβ¨
and that's a wrap! this little beauty is perl v5.28.1, dated 2019-01-12, and it's the HTML::...xgroup(3pm) page β mwah, go build some checkboxes π
ππ¦
π¦ 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