1HTML::FormFu::Element::USsiemrplCeoTnatbrlieb(u3t)ed PerHlTMDLo:c:uFmoernmtFaut:i:oEnlement::SimpleTable(3)
2
3
4

NAME

6       HTML::FormFu::Element::SimpleTable - simple table element
7

VERSION

9       version 2.07
10

SYNOPSIS

12       The following is yaml markup for a table consisting of a header row
13       containing 2 "th" cells, and a further 2 rows, each containing 2 "td"
14       cells.
15
16           type: SimpleTable
17           headers:
18             - One
19             - Two
20           rows:
21             -
22               - type: Input
23                 name: one_a
24               - type: Input
25                 name: two_a
26             -
27               - type: Input
28                 name: one_b
29               - type: Input
30                 name: two_b
31

DESCRIPTION

33       Sometimes you just really need to use a table to display some fields in
34       a grid format.
35
36       As its name suggests, this is a compromise between power and
37       simplicity.  If you want more control of the markup, you'll probably
38       just have to revert to using nested block's, setting the tags to table,
39       tr, td, etc. and adding the cell contents as elements.
40

METHODS

42   headers
43       Input Value: \@headers
44
45       "headers" accepts an arrayref of strings. Each string is xml-escaped
46       and inserted into a new header cell.
47
48   rows
49       Input Value: \@rows
50
51       "rows" accepts an array-ref, each item representing a new row. Each row
52       should be comprised of an array-ref, each item representing a table
53       cell.
54
55       Each cell item should be appropriate for passing to "element" in
56       HTML::FormFu; so either a single element's definition, or an array-ref
57       of element definitions.
58
59   odd_class
60       Input Value: $string
61
62       The supplied string will be used as the class-name for each odd-
63       numbered row (not counting any header row).
64
65   even_class
66       Input Value: $string
67
68       The supplied string will be used as the class-name for each even-
69       numbered row (not counting any header row).
70

SEE ALSO

72       Is a sub-class of, and inherits methods from
73       HTML::FormFu::Element::Block, HTML::FormFu::Element
74
75       HTML::FormFu
76

AUTHOR

78       Carl Franks, "cfranks@cpan.org"
79

LICENSE

81       This library is free software, you can redistribute it and/or modify it
82       under the same terms as Perl itself.
83

AUTHOR

85       Carl Franks <cpan@fireartist.com>
86
88       This software is copyright (c) 2018 by Carl Franks.
89
90       This is free software; you can redistribute it and/or modify it under
91       the same terms as the Perl 5 programming language system itself.
92
93
94
95perl v5.34.0                      2021-07-H2T2ML::FormFu::Element::SimpleTable(3)
Impressum