HTML::...:Reset(3pm)

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

πŸ’– HTML::...:Reset(3pm) β€” the manual page, but make it cute πŸ’–

okay bestie, gather round, because today we're learning about HTML::...:Reset(3pm) β€” yes that's the whole manual name, and yes it's giving mysterious truncated energy, but we move. ✨


🌸 NAME 🌸

HTML::Widget::Element::Reset β€” the Reset Element. that's it, that's the name. iconic, brief, no notes. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the vibe, copy it exactly bestie:

$e = $widget->element( 'Reset', 'foo' );
$e->value('bar');

look at that. two lines. clean. slay. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so it's a Reset button element. that's the whole thing. it's a button, and it resets. main character behavior fr fr.

it inherits all methods from HTML::Widget::Element::Button β€” so like, everything Button can do, Reset can do too. nepotism but make it inheritance. πŸ‘‘

and it automatically sets type to "reset". no cap, you don't have to do it, it just does it. self-sufficient queen. ✨


πŸ’œ METHODS πŸ’œ

⭐ new

it's here. the docs list it, that's the tea. no extra deets given, so i'm not gonna invent any. πŸ“

⭐ label

also listed. also no extra notes. it's giving "the docs said what they said." 😭

πŸ’– value

okay THIS one has actual lore:

  • it sets the form field value. that's its whole job.
  • it's also used by the browser as the button label. so like, one string, two purposes, multitasking icon behavior. πŸ”₯
  • if you don't set it, the browser will usually display the label as "Reset". note the usually β€” the docs are being honest with us, they said usually, not always. we respect that.
  • and plot twist: label is an alias for value. they're the same thing, just two names. sibling energy. same person, different font. πŸ’€

🌈 SEE ALSO 🌈

go read these too bestie, they're the extended universe:

  • HTML::Widget::Element::Button
  • HTML::Widget::Element

πŸ‘‘ AUTHOR πŸ‘‘

Sebastian Riedel, sri@oook.de β€” thank you for your service, king. 🫢


πŸ“œ LICENSE πŸ“œ

this library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. so like, go wild, respectfully. πŸ’–


and that's the whole page bestie!! this was perl v5.36.0, dated 2023-08-10, and honestly? she ate. mwah. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from