HTML::...:Hidden(3pm)
π HTML::Widget::Element::Hidden π
okay bestie, welcome to the HTML::Widget::Element::Hidden man page β section 3pm, Perl user-contributed docs, the whole vibe. it's a hidden element. it's giving "you can't see me but i'm literally in the form" β¨. let's get into it π«Ά
β¨ NAME β¨
HTML::Widget::Element::Hidden β Hidden Element π»
πΈ SYNOPSIS πΈ
my $e = $widget->element( 'Hidden', 'foo' );
$e->value('bar');
that's it, that's the whole flex. make a Hidden element called foo, then set its value to bar. slay π
π¦ DESCRIPTION π¦
Hidden Element. periodt. it's an element, and it's hidden, no cap π
π METHODS π
β value
Default value is 1. yep, 1. not zero, not undef, one. iconic behaviour honestly.
β retain_default
if this 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. so basically: field goes missing β normally the output is empty β but with retain_default true, you get the default value instead. the way that justβ¦ keeps your default ππ
β new
(the constructor. it's here. it exists. main character energy π)
β containerize
(also here. living its life. π)
π₯ SEE ALSO π₯
HTML::Widget::Elementβ go read this one too, iykyk
π 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. free as in go off, bestie π
lowkey reminder: this page is from perlv5.36.0, dated2023-08-10, and it's theHTML::Widget::Element::Hiddenpage from the3pmsection of the User Contributed Perl Documentation. okay bye, drink water, go set some hidden values π β¨πΈ
π¦ 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