HTML::...eTable(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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 πŸ‘‘


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