Form::...ckboxes(3pm)
π Form::...ckboxes(3pm) β the checkboxes page, but make it cute π
okay bestie, welcome to the manual page for Embperl::Form::Control::checkboxes β it's giving User Contributed Perl Documentation, and honestly? iconic. this is the lil' control that makes a whole pile of checkboxes show up inside an Embperl Form. let's get into it π
β¨ NAME β¨
Embperl::Form::Control::checkboxes β a multiple checkbox control inside an Embperl Form. yes, multiple. plural. the whole squad of checkboxes. π«Ά
πΈ SYNOPSIS πΈ
look at this lil' hash ref, no cap:
{
type => 'checkboxes',
text => 'blabla',
name => 'foo',
values => [1,2,3],
options => ['foo', 'bar', 'none'],
}
that's the vibe. that's the whole vibe. π
π¦ DESCRIPTION π¦
so like, you use this to create a checkboxes control inside an Embperl Form. that's the job. that's what it does. π§
want the tea on how to specify parameters in general? go read Embperl::Form, bestie, it has the answers. this page is just about this control.
β PARAMETER β
okay here's the part where we go parameter by parameter, and yes we're doing all of them, no skipping, periodt.
typeβ needs to be'checkboxes'. like, that's the whole thing. it has to be that string. no notes. πnameβ specifies the name of the checkboxes control. every control needs a name, and this is where you put it. πtextβ will be used as the label for the checkboxes control. it's the lil' caption above your checkbox pile, yk? πΈvaluesβ gives the values as an array ref of the checkboxes control. array ref. remember that. π₯optionsβ gives the options as an array ref that should be displayed to the user. and here's the cute part: if no options are given, the values fromvaluesare used instead. convenient! slay! β¨vertβ if specified, arranges the checkboxes button vertically. the number you give specifies how many<br>'s are used to separate the checkboxes buttons. so like, you control the spacing. you control the drama. πtabβ if specified, arranges the checkboxes in a table. the number you give specifies the number of columns in one table row. grid mode: activated. πaddtopβ an array ref which contains items that should be added at the left or top of the checkboxes buttons. each item is itself an array ref with two entries: the first is the value, and the second is the option that is displayed on the page. and if the second one is missing, the value (the first entry) is displayed. example time:
addtop => [ [1 => 'first item'], [2 => 'second item']]
see? first item, second item. putting stuff at the top. π
addbottomβ an array ref which contains items that should be added at the right or bottom of the checkboxes buttons. each item consists of an array ref with two entries, the first is the value and the second is the option that is displayed on the page. if the second is missing, the value (first entry) is displayed. example:
addbottom => [ [9999 => 'last item'], [9999 => 'very last item']]
last item AND very last item. the duality. π
filterβ if given, only items where the value matches the regex given in"filter"are displayed. it's a filter. it filters. that's the whole personality. π
π Author π
G. Richter (richter at embperl dot org) β the icon who wrote this. respect. π«Ά
π See Also π
go check these out, bestie, they're all part of the same universe:
perl(1)EmbperlEmbperl::Form
and that's the page!! you made it to the end, proud of you fr fr π
this little manual page was living its life as perl v5.34.0, dated 2022-02-06, filed under Form::...ckboxes(3pm) β so yeah, that's the source, the version and the date, all accounted for, mwah π
π¦ where this page comes from
- ubuntu jammy: libembperl-perl 2.5.0-16build1 Β· 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