1HTML::FormFu::Element::UBsleorckC(o3n)tributed Perl DocuHmTeMnLt:a:tFioornmFu::Element::Block(3)
2
3
4

NAME

6       HTML::FormFu::Element::Block - Block element
7

VERSION

9       version 2.07
10

SYNOPSIS

12           ---
13           elements:
14             - type: Block
15               elements:
16                 - type: Text
17                   name: foo
18
19             - type: Block
20               tag: span
21               content: Whatever
22

DESCRIPTION

24       Block element which may contain other elements.
25

METHODS

27   tag
28       Specifies which tag name should be used to render the block.
29
30       Default Value: 'div'
31
32   content
33       If "content" is set, it is used as the block's contents, and any
34       attached elements are ignored.
35
36   content_xml
37       Arguments: $string
38
39       If you don't want the content to be XML-escaped, use the "content_xml"
40       method instead of "content".
41
42   content_loc
43       Arguments: $localization_key
44
45       To set the content to a localized string, set "content_loc" to a key in
46       your L10N file instead of using "content".
47
48   elements
49       See "elements" in HTML::FormFu for details.
50
51   element
52       See "element" in HTML::FormFu for details.
53
54   deflators
55       See "deflators" in HTML::FormFu for details.
56
57   deflator
58       See "deflator" in HTML::FormFu for details.
59
60   filters
61       See "filters" in HTML::FormFu for details.
62
63   filter
64       See "filter" in HTML::FormFu for details.
65
66   constraints
67       See "constraints" in HTML::FormFu for details.
68
69   constraint
70       See "constraint" in HTML::FormFu for details.
71
72   inflators
73       See "inflators" in HTML::FormFu for details.
74
75   inflator
76       See "inflator" in HTML::FormFu for details.
77
78   validators
79       See "validators" in HTML::FormFu for details.
80
81   validator
82       See "validator" in HTML::FormFu for details.
83
84   transformers
85       See "transformers" in HTML::FormFu for details.
86
87   transformer
88       See "transformer" in HTML::FormFu for details.
89
90   auto_datalist_id
91       See "auto_datalist_id" in HTML::FormFu for details.
92

CSS CLASSES

94   auto_id
95       See "auto_id" in HTML::FormFu for details.
96
97   auto_block_id
98       Arguments: [$string]
99
100       If set, the Block will be given an auto-generated id attribute, if it
101       doesn't have one already.
102
103       The following character substitution will be performed: %f will be
104       replaced by $form->id, %r will be replaced by $block->repeatable_count.
105
106       Default Value: not defined
107
108       Unlike most other auto_* methods, this is not an 'inherited accessor'.
109
110   auto_label
111       See "auto_label" in HTML::FormFu for details.
112
113   auto_error_field_class
114       See "auto_error_field_class" in HTML::FormFu for details.
115
116   auto_error_class
117       See "auto_error_class" in HTML::FormFu for details.
118
119   auto_error_message
120       See "auto_error_message" in HTML::FormFu for details.
121
122   auto_constraint_class
123       See "auto_constraint_class" in HTML::FormFu for details.
124
125   auto_inflator_class
126       See "auto_inflator_class" in HTML::FormFu for details.
127
128   auto_validator_class
129       See "auto_validator_class" in HTML::FormFu for details.
130
131   auto_transformer_class
132       See "auto_transformer_class" in HTML::FormFu for details.
133
134   default_args
135       See "default_args" in HTML::FormFu for details.
136

RENDERING

138   start
139   end

INTROSPECTION

141   get_elements
142       See "get_elements" in HTML::FormFu for details.
143
144   get_element
145       See "get_element" in HTML::FormFu for details.
146
147   get_all_elements
148       See "get_all_elements" in HTML::FormFu for details.
149
150   get_fields
151       See "get_fields" in HTML::FormFu for details.
152
153   get_field
154       See "get_field" in HTML::FormFu for details.
155
156   get_deflators
157       See "get_deflators" in HTML::FormFu for details.
158
159   get_deflator
160       See "get_deflator" in HTML::FormFu for details.
161
162   get_filters
163       See "get_filters" in HTML::FormFu for details.
164
165   get_filter
166       See "get_filter" in HTML::FormFu for details.
167
168   get_constraints
169       See "get_constraints" in HTML::FormFu for details.
170
171   get_constraint
172       See "get_constraint" in HTML::FormFu for details.
173
174   get_inflators
175       See "get_inflators" in HTML::FormFu for details.
176
177   get_inflator
178       See "get_inflator" in HTML::FormFu for details.
179
180   get_validators
181       See "get_validators" in HTML::FormFu for details.
182
183   get_validator
184       See "get_validator" in HTML::FormFu for details.
185
186   get_transformers
187       See "get_transformers" in HTML::FormFu for details.
188
189   get_transformer
190       See "get_transformer" in HTML::FormFu for details.
191
192   get_errors
193       See "get_errors" in HTML::FormFu for details.
194
195   clear_errors
196       See "clear_errors" in HTML::FormFu for details.
197

SEE ALSO

199       Base-class for HTML::FormFu::Element::Fieldset.
200
201       Is a sub-class of, and inherits methods from HTML::FormFu::Element
202
203       HTML::FormFu
204

REMOVED METHODS

206   element_defaults
207       Has been removed; use "default_args" instead.
208

AUTHOR

210       Carl Franks, "cfranks@cpan.org"
211

LICENSE

213       This library is free software, you can redistribute it and/or modify it
214       under the same terms as Perl itself.
215

AUTHOR

217       Carl Franks <cpan@fireartist.com>
218
220       This software is copyright (c) 2018 by Carl Franks.
221
222       This is free software; you can redistribute it and/or modify it under
223       the same terms as the Perl 5 programming language system itself.
224
225
226
227perl v5.38.0                      2023-07-20   HTML::FormFu::Element::Block(3)
Impressum