Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

html::formfu::element::simpletable(3pm) [debian man page]

HTML::FormFu::Element::SimpleTable(3pm) 		User Contributed Perl Documentation		   HTML::FormFu::Element::SimpleTable(3pm)

NAME
HTML::FormFu::Element::SimpleTable - simple table element SYNOPSIS
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. 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. As its name suggests, this is a compromise between power and simplicity. 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. METHODS
headers Input Value: @headers "headers" accepts an arrayref of strings. Each string is xml-escaped and inserted into a new header cell. 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. 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). 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). SEE ALSO
Is a sub-class of, and inherits methods from HTML::FormFu::Element::Block, HTML::FormFu::Element HTML::FormFu AUTHOR
Carl Franks, "cfranks@cpan.org" LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-23 HTML::FormFu::Element::SimpleTable(3pm)

Check Out this Related Man Page

HTML::FormFu::Role::Element::Group(3pm) 		User Contributed Perl Documentation		   HTML::FormFu::Role::Element::Group(3pm)

NAME
HTML::FormFu::Element::_Group - grouped form field base-class DESCRIPTION
Base class for HTML::FormFu::Element::Checkboxgroup, HTML::FormFu::Element::Radiogroup, and HTML::FormFu::Element::Select fields. METHODS
options Arguments: none Arguments: @options --- elements: - type: Select name: foo options: - [ 01, January ] - [ 02, February ] - value: 03 label: March attributes: style: highlighted - [ 04, April ] If passed no arguments, it returns an arrayref of the currently set options. Use to set the list of items in the select menu / radiogroup. Its arguments must be an array-ref of items. Each item may be an array ref of the form "[ $value, $label ]" or a hash-ref of the form "{ value => $value, label => $label }". Each hash-ref may also have an "attributes" key. Passing an item containing a "group" key will, for Select fields, create an optgroup. And for Radiogroup fields or Checkboxgroup fields, create a sub-group of radiobuttons or checkboxes with a new "span" block, with the classname "subgroup". An example of Select optgroups: --- elements: - type: Select name: foo options: - label: "group 1" group: - [1a, 'item 1a'] - [1b, 'item 1b'] - label: "group 2" group: - [2a, 'item 2a'] - [2b, 'item 2b'] When using the hash-ref construct, the "label_xml" and "label_loc" variants of "label" are supported, as are the "value_xml" and "value_loc" variants of "value", the "attributes_xml" variant of "attributes" and the "label_attributes_xml" variant of "label_attributes". "container_attributes" or "container_attributes_xml" is used by HTML::FormFu::Element::Checkboxgroup and HTML::FormFu::Element::Radiogroup for the c<span> surrounding each item's input and label. It is ignored by HTML::FormFu::Element::Select elements. "label_attributes" / "label_attributes_xml" is used by HTML::FormFu::Element::Checkboxgroup and HTML::FormFu::Element::Radiogroup for the c<label> tag of each item. It is ignored by HTML::FormFu::Element::Select elements. values Arguments: @values --- elements: - type: Radiogroup name: foo values: - jan - feb - mar - apr A more concise alternative to "options". Use to set the list of values in the select menu / radiogroup. Its arguments must be an array-ref of values. The labels used are the result of "ucfirst($value)". value_range Arguments: @values --- elements: - type: Select name: foo value_range: - "" - 1 - 12 Similar to "values", but the last 2 values are expanded to a range. Any preceding values are used literally, allowing the common empty first item in select menus. empty_first If true, then a blank option will be inserted at the start of the option list (regardless of whether "options", "values" or "value_range" was used to populate the options). See also "empty_first_label". empty_first_label empty_first_label_xml empty_first_label_loc If "empty_first" is true, and "empty_first_label" is set, this value will be used as the label for the first option - so only the first option's value will be empty. SEE ALSO
Is a sub-class of, and inherits methods from HTML::FormFu::Element::_Field, HTML::FormFu::Element HTML::FormFu AUTHOR
Carl Franks, "cfranks@cpan.org" LICENSE
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-14 HTML::FormFu::Role::Element::Group(3pm)
Man Page