HTML::...:Submit(3pm)

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

πŸ’– HTML::Widget::Element::Submit β€” the manual, but make it cute πŸ’–

okay bestie, so this is the page for HTML::Widget::Element::Submit(3pm) β€” that's the whole name, HTML::Widget::Element::Submit, and it's a Submit Element from the HTML::Widget world. it's giving "button that submits your form" energy and honestly? iconic. let's get into it πŸŽ€


✨ SYNOPSIS ✨

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

like. two lines. two little lines and you have a whole submit button. periodt πŸ’…


🌸 DESCRIPTION 🌸

it's a Submit button element. that's the vibe. that's the whole vibe.

it inherits all methods from HTML::Widget::Element::Button β€” so everything Button can do, this baby can do too, no cap 🫢

and it automatically sets type to "submit". you don't gotta do it. it just knows. main character behaviour fr fr πŸ‘‘


πŸ¦‹ METHODS πŸ¦‹

new

it's there. it exists. it's the constructor situation πŸ’–

value

also there. also exists. keep reading tho because label is literally about to spill the tea β˜•

label

okay so this one sets the form field value. and it's also what the browser uses as the button label β€” yes, same thing doing double duty, we love an efficient queen ✨

if you don't set it, the browser will usually display the label as "Submit". usually. we don't make the rules, the browsers do 😭

and plot twist: "label" is an alias for "value". same girl, two names. iykyk πŸ’…

retain_default

so if this is true, it overrides the default behaviour. meaning: after a field is missing from the form submission, the xml output will contain the default value instead of being empty. lowkey a lifesaver. highkey a lifesaver actually 🌈


πŸ‘€ SEE ALSO πŸ‘€

  • HTML::Widget::Element β€” go read it bestie, it's the parent energy 🧚

πŸ’œ 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. slay. go wild. legally. 🌸


and that's the whole page bestie, no crumbs left, every flag and method accounted for πŸ’–

and a lil sign-off for the record: this was perl v5.36.0, dated 2023-08-10, and it came to you as part of the User Contributed Perl Documentation. mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from