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

SYNOPSIS

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

DESCRIPTION

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

METHODS

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

SEE ALSO

69       Is a sub-class of, and inherits methods from
70       HTML::FormFu::Element::Block, HTML::FormFu::Element
71
72       HTML::FormFu
73

AUTHOR

75       Carl Franks, "cfranks@cpan.org"
76

LICENSE

78       This library is free software, you can redistribute it and/or modify it
79       under the same terms as Perl itself.
80
81
82
83perl v5.12.1                      2010-05-H2T3ML::FormFu::Element::SimpleTable(3)
Impressum