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

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

πŸ’– Embperl::Form::Control::show β€” the vibe ✨

okay bestie, so this is Embperl::Form::Control::show, and it lives in the User Contributed Perl Documentation for Form::...l::show(3pm) πŸŽ€ (the manual name is lowkey a mystery box of ellipses, but that's the one, iykyk). It's a text display control that sits inside an Embperl Form β€” display only, no typing, it's giving "look but don't touch" πŸ’…


✨ SYNOPSIS ✨

{
type   => 'display',
text   => 'blabla',
hidden => 1,
name   => 'foo',
split  => 1
}

that's it, that's the whole look 🌸


🌈 DESCRIPTION 🌈

So basically you use this to create a display only control inside an Embperl Form. Nothing to fill in, nothing to submit, just vibes and text on the screen πŸ¦‹

For how to actually specify parameters in general, go check out Embperl::Form β€” it's the main character and this control is just a supporting role.

🫢 PARAMETER

type

Needs to be set to 'show'. Like, it literally has to be that, no negotiating πŸ’€

text

This one gets used as the label for the text display control. Your little caption moment ✨

value

The value to display. If you don't give one, $fdat{<name>} gets used instead β€” it'll go find it for you, so generous 🫢

And plot twist: if the data you pass in value is an arrayref, then every element gets displayed on its own separate line. One per line, no crowding, everyone gets their moment πŸ‘‘

hidden

If set, an appropriate hidden input field gets created automatically. Sneaky little field, doesn't show up in the UI but it's there doing its thing πŸ™ˆ

name

Will be used as the name for that hidden input field. Gotta name your children πŸŽ€

split

Splits the value into an array at \t if set, and displays every array element on a new line. Tab-separated in, line-separated out, a little glow-up πŸ’…

splitlines

Splits the value into an array at \n if set, and displays every array element on a new line. Same energy as split, but for newlines β€” pick your fighter 🧚


πŸ‘‘ Author πŸ‘‘

G. Richter (richter at embperl dot org), A. Beckert (beckert@ecos.de) β€” absolute icons, we stan 🌟

🌸 See Also 🌸


no cap, that's the whole page. every flag, every default, every tiny detail β€” preserved exactly, just with better lighting ✨

okay and for the cute sign-off bestie: this whole thing is perl v5.34.0, dated 2022-02-06, and it's Form::...l::show(3pm) β€” periodt πŸ’œ

πŸ“¦ where this page comes from