HTML::S...boxGroup(3)

πŸ“¦
version 1.09 Β· 2 versions
, in fedora 43

πŸ’– HTML::SuperForm::Field::CheckboxGroup πŸ’–

okay bestie so this is HTML::S...boxGroup(3), aka HTML::SuperForm::Field::CheckboxGroup β€” the CheckboxGroup field that HTML::SuperForm uses when it needs a whole lil squad of checkboxes instead of just one lonely box. yes, plural. it's giving "pick several, queen." πŸŽ€


✨ NAME ✨

HTML::SuperForm::Field::CheckboxGroup β€” the CheckboxGroup field used by HTML::SuperForm πŸ¦‹

lowkey that's the whole vibe, but keep reading because the good stuff is below.


🌸 SYNOPSIS 🌸

here's the moment, the main character entrance, the code:

my $checkbox_group = HTML::SuperForm::Field::CheckboxGroup->new( name => 'my_checkbox_group',
                                                                 values => [ 1, 2, 3, 4 ],
                                                                 labels => { 1 => 'One',
                                                                             2 => 'Two',
                                                                             3 => 'Three',
                                                                             4 => 'Four' },
                                                                 rows => 2);

print $checkbox_group;

so you spin up a new one, hand it a name, a list of values, a labels hash mapping each value to the cute text that shows up next to it, and rows => 2 for the layout. then you just print it and it does its thing. iconic. ✨


πŸ‘‘ SEE ALSO πŸ‘‘

  • HTML::SuperForm::Field β€” the parent-ish vibe, go check it out, iykyk πŸ’…

πŸ’œ AUTHOR πŸ’œ

John Allwine <jallwine86@yahoo.com> β€” yeah, the author, we stan 🫢


πŸŽ€ sign-off πŸŽ€

this page is perl v5.42.0, dated 2025-07-25, and it lives at HTML::S...boxGroup(3) in the User Contributed Perl Documentation. no cap, that's the whole page. go forth and checkbox responsibly, bestie πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from