1HTML::FormFu::Element::UDsaetreTCiomnet(r3i)buted Perl DHoTcMuLm:e:nFtoartmiFoun::Element::DateTime(3)
2
3
4

NAME

6       HTML::FormFu::Element::DateTime - Date / Time combo field
7

SYNOPSIS

9           ---
10           elements:
11             - type: DateTime
12               name: start_datetime
13               label: 'Start:'
14               auto_inflate: 1
15

DESCRIPTION

17       Sub-class of Date element, providing extra "hour" and "minute" Select
18       menus.
19

METHODS

21   hour
22       Arguments: \%setting
23
24       Set values effecting the "hour" select menu. Known keys are:
25
26       name
27
28       Override the auto-generated name of the select menu.
29
30       default
31
32       Set the default value of the select menu
33
34       prefix
35
36       Arguments: $value
37
38       Arguments: \@values
39
40       A string or arrayref of strings to be inserted into the start of the
41       select menu.
42
43       Each value is only used as the label for a select item - the value for
44       each of these items is always the empty string ''.
45
46   minute
47       Arguments: \%setting
48
49       Set values effecting the "minute" select menu. Known keys are:
50
51       name
52
53       Override the auto-generated name of the select menu.
54
55       default
56
57       Set the default value of the select menu
58
59       prefix
60
61       Arguments: $value
62
63       Arguments: \@values
64
65       A string or arrayref of strings to be inserted into the start of the
66       select menu.
67
68       Each value is only used as the label for a select item - the value for
69       each of these items is always the empty string ''.
70
71   second
72       Arguments: \%setting
73
74       Set values effecting the "second" select menu. Known keys are:
75
76       name
77
78       Override the auto-generated name of the select menu.
79
80       default
81
82       Set the default value of the select menu
83
84       prefix
85
86       Arguments: $value
87
88       Arguments: \@values
89
90       A string or arrayref of strings to be inserted into the start of the
91       select menu.
92
93       Each value is only used as the label for a select item - the value for
94       each of these items is always the empty string ''.
95
96   field_order
97       Arguments: \@fields
98
99       Default Value: ['day', 'month', 'year', 'hour', 'minute']
100
101       Specify the order of the date fields in the rendered HTML.
102
103       If you want the "second" selector to display, you must set both
104       "/field_order" and strftime yourself. Eg:
105
106           elements:
107             type: DateTime
108             name: foo
109             strftime: '%d-%m-%Y %H:%M:%S'
110             field_order: ['day', 'month', 'year', 'hour', 'minute', 'second']
111
112       Not all fields are required. No single field can be used more than
113       once.
114

CAVEATS

116       See "CAVEATS" in HTML::FormFu::Element::Date
117

SEE ALSO

119       Is a sub-class of, and inherits methods from
120       HTML::FormFu::Element::Date HTML::FormFu::Element::_Field,
121       HTML::FormFu::Element::Multi, HTML::FormFu::Element::Block,
122       HTML::FormFu::Element
123
124       HTML::FormFu
125

AUTHOR

127       Carl Franks, "cfranks@cpan.org"
128

LICENSE

130       This library is free software, you can redistribute it and/or modify it
131       under the same terms as Perl itself.
132
133
134
135perl v5.12.1                      2010-05-16HTML::FormFu::Element::DateTime(3)
Impressum