Form::...l::mult(3pm)

πŸ“¦
version 2.5.0 Β· 2 versions
, in ubuntu jammy

πŸ’– 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 ✨

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