aboutsummaryrefslogtreecommitdiff
path: root/doc/ref/javascript/components/date_time_input.texi
blob: f26627d2f3dd5c463750f9f0ed4f07e43d85b978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@subsection date-time-input

@deftp {Web Component} DateTimeInput
@wcindex <date-time-input>
@wcindex date-time-input
@code {<date-time-input>}

An element for input for date-times. Similar to
@example
<input type="date"/>
<input type="time"/>
@end example
But as a single unit.

@deftypeivar DateTimeInput boolean dateonly
Setting this to true disabled the time part of the input, and makes
any output only have date components (alternativly, the time component
set to zero).
@end deftypeivar

@defcv {Attribute} DateTimeInput dateonly
Same data as the field dateonly, but as an attribute. Present means
true, absent means false.
@end defcv

@deftypeivar DateTimeInput Date value
Returns current value as a Date object.
@end deftypeivar

@deftypeivar DateTimeInput string stringValue
Returns current value as an ISO-8601 formatted string.
@end deftypeivar

@end deftp