CGI::T..._Field(3pm)

πŸ“¦
version 1.111 Β· 2 versions
  • 1.111 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.111 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… CGI::T..._Field(3pm) πŸ’…

ok so welcome bestie 🫢 you just opened CGI::T..._Field(3pm), from the User Contributed Perl Documentation collection, and honestly? she's a little icon. sit down, grab a strawberry πŸ“, and let's get into it.


✨ NAME ✨

CGI::Test::Form::Widget::Input::Text_Field β€” it's a text field πŸ’– that's literally the whole vibe.


πŸŽ€ SYNOPSIS πŸŽ€

no thoughts, just code. copy it exactly, bestie:

# Inherits from CGI::Test::Form::Widget::Input
# $form is a CGI::Test::Form

my $desc = $form->input_by_name("description");
$desc->replace("small and beautiful");

see how $desc just... ate? yeah. that's the energy. πŸ”₯


🌸 DESCRIPTION 🌸

okay so picture this: this class models a single-line text field β€” like, the little box where users can type text. one line. that's her. she's not a textarea, she's not doing the most, she's just a cute little input and she's thriving. ✨


πŸ‘‘ INTERFACE πŸ‘‘

the interface is exactly the same as the one described in CGI::Test::Form::Widget::Input, no cap, but she comes with these extra attributes on top. she's giving main character energy πŸ’…:

  • "max_length" β€” the maximum allowed text length within the field. if it's not defined, that means the length is not limited β€” she can hold whatever, she's boundless, she's free πŸ¦‹. if it is defined, respect the limit bestie, periodt.
  • "size" β€” the size of the displayed text field, measured in characters. but lowkey important: the text held within the field can be much larger than that. the display is just the display, the content is the content, iykyk. πŸ’€

πŸ’œ AUTHORS πŸ’œ

giving credit where credit is due, always:

  • the original author is Raphael Manfredi ✨
  • Steven Hilton was long time maintainer of this module 🫢
  • current maintainer is Alexander Tokarev <tokarev@cpan.org> β€” email her if you need her πŸ’Œ

🌈 SEE ALSO 🌈


aaaand that's the whole page bestie, you understood it perfectly, I'm so proud of you πŸ₯ΉπŸ’– this was CGI::T..._Field(3pm), User Contributed Perl Documentation, running under perl v5.34.0 and dated 2022-06-10. go forth and type in your little text fields, you absolute legend πŸŒŸπŸŽ€