Form::...l::mult(3pm)
π Form::...l::mult β bestie edition π
okay so this page is filed under the manual name Form::...l::mult(3pm) in the User Contributed Perl Documentation (that's the 3pm part, slay), and it's literally the docs for the thing called Embperl::Form::Control::grid. yes the title and the NAME don't match, no we are not going to unpack that, we're just gonna vibe. π«Ά
β¨ NAME β¨
Embperl::Form::Control::grid β it's a grid control living inside an Embperl Form. that's it, that's the name, periodt. π
β¨ SYNOPSIS β¨
okay so bestieβ¦ there is literally nothing here. π the original page has this section and it is empty. no cap, zero content, a whole void, it's giving minimalism. so we're moving on. π¦
β¨ DESCRIPTION β¨
You use this lil guy to create a grid control inside an Embperl Form. π
and if you're like "okay but how do I even specify parameters" β that's not here, babe. it says: go see Embperl::Form on how to specify parameters. it's all over there. β¨
πΈ PARAMETER πΈ
type
needs to be 'grid'. that's the whole assignment. if it's not 'grid', it's not doing the grid thing. π
fields
an array ref stuffed full of field definitions. like, all your little field descriptors go in here as a list. π
header_bottom
okay so lowkey this one's fun π β if the grid has more rows than the number you give here, then a header line also gets displayed at the bottom of the grid. so you get a header up top AND down below. double header energy, iconic.
the default is 10. β¨
and if you set it to -1, you will always get a header at the bottom, no matter what. always. fr fr. πΈ
π Example π
here's the example, copied exactly because we do not mess with the code:
{
name => 'provider-path',
text => 'Suchpfad',
type => 'grid',
fields =>
[
{ name => 'active', text => 'Aktiv', type => 'checkbox', width => '30' },
{ name => 'path', text => 'Pfad' },
],
},
look at those fields doing their thing, one checkbox with width => '30', one plain path field. chef's kiss. π
β¨ Author β¨
G. Richter (richter at embperl dot org) β the mastermind behind this grid, we stan. π«Ά
β¨ See Also β¨
perl(1)EmbperlEmbperl::Form
go read those, bestie, that's where the parameter lore lives. πβ¨
and that's the whole page, no notes. π¦ it's from perl v5.34.0, dated 2022-02-06, filed under Form::...l::mult(3pm) β thanks for coming to my ted talk, ily, bye ππ
π¦ 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