HTML::...eTable(3pm)
π HTML::FormFu::Element::SimpleTable π
okay bestie, welcome to the HTML::FormFu::Element::SimpleTable page π
β it's a User Contributed Perl Documentation joint, and it's literally just a simple table element. That's the whole vibe. Let's go π¦
β¨ NAME β¨
HTML::FormFu::Element::SimpleTable β a simple table element. that's it. that's the name. iconic behavior honestly.
π VERSION π
version 2.07 β yes queen, we're on 2.07 πΈ
π§ SYNOPSIS π§
so the following is yaml markup for a table consisting of a header row containing 2 "th" cells, and a further 2 rows, each containing 2 "td" cells. lowkey elegant, highkey useful π
type: SimpleTable
headers:
- One
- Two
rows:
-
- type: Input
name: one_a
- type: Input
name: two_a
-
- type: Input
name: one_b
- type: Input
name: two_b
π DESCRIPTION π
sometimes you just really need to use a table to display some fields in a grid format. no notes. it happens to the best of us fr fr π
as its name suggests, this is a compromise between power and simplicity. the way that it's not trying to be everything β it's giving balanced. but if you want more control of the markup, you'll probably just have to revert to using nested block's, setting the tags to table, tr, td, etc. and adding the cell contents as elements. that's the tradeoff bestie π«Ά
π METHODS π
π headers
Input Value: \@headers
"headers" accepts an arrayref of strings. Each string is xml-escaped and inserted into a new header cell. every single one of them, no skips β¨
π rows
Input Value: \@rows
"rows" accepts an array-ref, each item representing a new row. Each row should be comprised of an array-ref, each item representing a table cell.
Each cell item should be appropriate for passing to "element" in HTML::FormFu; so either a single element's definition, or an array-ref of element definitions. both options are valid, pick your fighter π₯
π¦ odd_class
Input Value: $string
The supplied string will be used as the class-name for each odd-numbered row (not counting any header row). main character energy for the odd rows, periodt π
πΈ even_class
Input Value: $string
The supplied string will be used as the class-name for each even-numbered row (not counting any header row). the even rows get their moment too, we don't play favorites here (we do, but not like that) π
π₯ SEE ALSO π₯
- Is a sub-class of, and inherits methods from
HTML::FormFu::Element::Block,HTML::FormFu::Elementβ so all that inherited method goodness comes along for the ride π« HTML::FormFu
π AUTHOR π
Carl Franks, "cfranks@cpan.org" β legend behavior, honestly π
β LICENSE β
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. free software bestie, do what you want with it (within the terms, obviously) π
π AUTHOR π
Carl Franks <cpan@fireartist.com> β yes, again. same icon, different email. we stan consistency π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2018 by Carl Franks.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
no cap: that's literally the whole page. every option, every value, every author, every license line β all accounted for π
okay bestie that's a wrap on HTML::FormFu::Element::SimpleTable, from User Contributed Perl Documentation β this was perl v5.28.1, dated 2019-01-12, and it's giving timeless π°οΈβ¨ mwah, go build a table, you got this ππ¦πΈ
π¦ where this page comes from
- debian bookworm: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formfu-perl 2.07000-1 Β· 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