1HTML::FormFu::Element::UNsuemrbeCro(n3t)ributed Perl DocHuTmMeLn:t:aFtoiromnFu::Element::Number(3)
2
3
4

NAME

6       HTML::FormFu::Element::Number - Number element with formatting
7

VERSION

9       version 2.07
10

SYNOPSIS

12         ---
13         elements:
14           - type: Number
15             locale: de_DE
16             precision: 2
17             trailing_zeroes: 1
18

DESCRIPTION

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

METHODS

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

SEE ALSO

44       HTML::FormFu::Deflator::FormatNumber
45
46       HTML::FormFu::Filter::FormatNumber
47
48       "locale" in HTML::FormFu
49

AUTHOR

51       Moritz Onken " onken at houseofdesign.de "
52

AUTHOR

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.36.0                      2023-01-20  HTML::FormFu::Element::Number(3)
Impressum