HTML::...extarea(3pm)

πŸ“¦
version 1.11 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– HTML::Widget::Element::Textarea β€” the textarea element bestie πŸ’–

okay so this is a 3pm manpage, meaning it's Perl module docs, and it's the page for HTML::Widget::Element::Textarea β€” aka the thing that makes a <textarea> show up in your widget form. yes. that's the whole vibe. a big ol' box you can type paragraphs into. iconic behavior honestly. πŸŽ€


✨ NAME ✨

HTML::Widget::Element::Textarea β€” Textarea Element. she's a textarea. she's an element. slay. πŸ¦‹


🌸 SYNOPSIS 🌸

look at her go:

my $e = $widget->element( 'Textarea', 'foo' );
$e->comment('(Required)');
$e->label('Foo');
$e->cols(30);
$e->rows(40);
$e->value('bar');
$e->wrap('wrap');

that's it, that's the whole flex. make the element, slap a comment on it, give it a label, set your columns and rows, drop in a value, set the wrap. done. periodt. πŸ’…


🫢 DESCRIPTION 🫢

Textarea Element. yeah. that's literally what the original says and honestly? she said it best. it's the textarea element. πŸ“


πŸ‘‘ METHODS πŸ‘‘

new

creates a new textarea with a default size of 20 rows and 40 columns. no cap, those are the defaults, so if you don't say anything she just shows up that size. 🧚

containerize

(yeah, that's the method. no description given. she's just there. mysterious main character energy. 🌈)

label

(the label method. that's all the original gives us. πŸ€·β™€οΈ)

value

(sets the value. again, no extra prose in the source. πŸ’œ)

cols

(the columns. ✨)

rows

(the rows. ✨)

wrap

(the wrap attribute. ✨)

retain_default

if this one is true, it overrides the default behaviour, so that after a field is missing from the form submission, the XML output will contain the default value, rather than be empty.

lowkey important: default behaviour = empty output when the field is missing. flip retain_default to true and you keep the default value instead. that's the whole switch. πŸ’–

🌟 SEE ALSO 🌟

  • HTML::Widget::Element β€” go read that one too bestie, it's the family she belongs to πŸ¦‹

πŸ’œ AUTHOR πŸ’œ

Sebastian Riedel, sri@oook.de. give her a round of applause. πŸ‘‘


πŸŽ€ LICENSE πŸŽ€

this library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. fr fr. 🌸


okay and just so you have the receipts: this page is from perl v5.36.0, dated 2023-08-10, and the manpage title is HTML::...extarea(3pm) (yes it really gets truncated like that, the terminal said what it said πŸ’€). go forth and textarea, bestie. πŸ’…βœ¨

πŸ“¦ where this page comes from