Form::...:input(3pm)

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

πŸ’– NAME πŸ’–

Embperl::Form::Control::input β€” it's literally a text input control that lives inside an Embperl Form, bestie ✨


🌸 SYNOPSIS 🌸

  {
  type      => 'input',
  text      => 'blabla',
  name      => 'foo',
  size      => 10,
  maxlength => 50,
  }

look at that little hashref go πŸŽ€ she's small, she's cute, she's about to render you a whole text box.


πŸ¦‹ DESCRIPTION πŸ¦‹

So, what's the vibe? You use this thing to create an input control inside an Embperl Form. That's it, that's the whole job, and she does it flawlessly πŸ’…

Not sure how to even specify parameters in the first place?</purl> Go read Embperl::Form β€” that's where all the deets live. iykyk 🫢

✨ PARAMETER ✨

okay here's the roster of params, one by one, no gatekeeping πŸ‘‘

  • type β€” needs to be 'input'. Like, it has to be. No negotiating, no alternatives, that's the assignment. periodt πŸ’€
  • name β€” specifies the name of the control. iconic behaviour, every control needs a name.
  • text β€” will be used as the label for the text input control. so like, the little caption that tells everyone what they're typing into 🏷️
  • size β€” gives the size in characters. how wide is she gonna be, bestie πŸ“
  • maxlength β€” gives the maximum possible input length in characters. the hard limit, the ceiling, the "no more than this" βœ‹
  • class β€” alternative CSS class name. for when you wanna dress her up different than the default fit πŸŽ€

πŸ‘‘ Author πŸ‘‘

G. Richter (richter at embperl dot org) β€” the actual main character who made this happen, we stan 🌈


🧚 See Also 🧚

go read those too, they're giving very much essential context πŸ’œ


lowkey a whole text input control in like six params?? we love an efficient queen πŸ™ˆ

okay that's the page!! this was documented with perl v5.34.0 back on 2022-02-06, mwah, bye bestie πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from