1HTML::FormFu::Element::UCsheerckCboonxtgrriobuupt(e3d)PHeTrMlL:D:oFcourmmeFnut:a:tEiloenment::Checkboxgroup(3)
2
3
4
6 HTML::FormFu::Element::Checkboxgroup - Group of checkbox form fields
7
9 version 2.07
10
12 YAML config:
13
14 ---
15 elements:
16 - type: Checkboxgroup
17 name: subjects
18 options:
19 - [ 'Math' ]
20 - [ 'Science' ]
21 - [ 'English' ]
22
24 Convenient to use group of checkbox fields.
25
26 Use the same syntax as you would to create a Select element optgroup to
27 create Checkboxgroup sub-groups, see "options" in
28 HTML::FormFu::Role::Element::Group for details.
29
31 options
32 See "options" in HTML::FormFu::Role::Element::Group.
33
34 values
35 See "values" in HTML::FormFu::Role::Element::Group.
36
37 value_range
38 See "value_range" in HTML::FormFu::Role::Element::Group.
39
40 auto_id
41 In addition to the substitutions documented by "auto_id" in
42 HTML::FormFu, %c will be replaced by an incremented integer, to ensure
43 there are no duplicated ID's, and %v will be replaced by the item's
44 value to allow multiple elements with the same name to coexist, and
45 their labels to correctly select the appropriate item.
46
47 ---
48 elements:
49 type: Checkboxgroup
50 name: foo
51 auto_id: "%n_%c"
52
53 reverse_group
54 If true, then the label for each checkbox in the checkbox group should
55 be rendered to the right of the field control. Otherwise, the label is
56 rendered to the left of the field control.
57
58 The default value is "true", causing each label to be rendered to the
59 right of its field control (or to be explicit: the markup for the label
60 comes after the field control in the source).
61
62 Default Value: "true"
63
65 Is a sub-class of, and inherits methods from
66 HTML::FormFu::Role::Element::Group, HTML::FormFu::Role::Element::Field,
67 HTML::FormFu::Element
68
69 HTML::FormFu
70
72 Carl Franks, "cfranks@cpan.org"
73
75 This library is free software, you can redistribute it and/or modify it
76 under the same terms as Perl itself.
77
79 Carl Franks <cpan@fireartist.com>
80
82 This software is copyright (c) 2018 by Carl Franks.
83
84 This is free software; you can redistribute it and/or modify it under
85 the same terms as the Perl 5 programming language system itself.
86
87
88
89perl v5.36.0 2023-0H1T-M2L0::FormFu::Element::Checkboxgroup(3)