HTML::...:Submit(3pm)
π 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
- debian trixie: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-widget-perl 1.11-7 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms