1HTML::FormFu::Element::UNsuemrbeCro(n3t)ributed Perl DocHuTmMeLn:t:aFtoiromnFu::Element::Number(3)
2
3
4
6 HTML::FormFu::Element::Number - Number element with formatting
7
9 version 2.06
10
12 ---
13 elements:
14 - type: Number
15 locale: de_DE
16 precision: 2
17 trailing_zeroes: 1
18
20 This element formats numbers according to the current locale. You can
21 set this locale either by setting "$form->locale" or by setting the
22 element's locale. If none of them is set the element uses the system's
23 locale.
24
26 locale
27 Set the locale for this element. The format of the number is chosen
28 according to this locale.
29
30 precision
31 Set the precision for the number. Defaults to 2.
32
33 trailing_zeroes
34 If this is set to 1 the number has trailing zeroes. Defaults to 0.
35
36 CHANGED BEHAVIOUR AS OF VERSION 0.09011
37 Previous to version 0.09011, this element generated an input field with
38 "type="number"" attribute which was not valid xhtml. Neither was the
39 formatted numbers valid html5 - which expects the value to be a
40 floating-point number. This element now generates a "type="text""
41 attribute.
42
44 HTML::FormFu::Deflator::FormatNumber
45
46 HTML::FormFu::Filter::FormatNumber
47
48 "locale" in HTML::FormFu
49
51 Moritz Onken " onken at houseofdesign.de "
52
54 Carl Franks <cpan@fireartist.com>
55
57 This software is copyright (c) 2018 by Carl Franks.
58
59 This is free software; you can redistribute it and/or modify it under
60 the same terms as the Perl 5 programming language system itself.
61
62
63
64perl v5.28.0 2018-04-09 HTML::FormFu::Element::Number(3)