diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-01-13 22:47:46 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-01-13 22:47:46 +0100 |
commit | 341e5a65a7b36e1f70ed9e6c2ae4f5b18c083b5b (patch) | |
tree | 6f01775b070e61b50cb88c757672aef6bbbfe4f4 /doc/ref/javascript/date_time.texi | |
parent | Split javascript doc into multiple files. (diff) | |
download | calp-341e5a65a7b36e1f70ed9e6c2ae4f5b18c083b5b.tar.gz calp-341e5a65a7b36e1f70ed9e6c2ae4f5b18c083b5b.tar.xz |
Doc work.
Diffstat (limited to 'doc/ref/javascript/date_time.texi')
-rw-r--r-- | doc/ref/javascript/date_time.texi | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/doc/ref/javascript/date_time.texi b/doc/ref/javascript/date_time.texi index 7bc47625..1f62c72e 100644 --- a/doc/ref/javascript/date_time.texi +++ b/doc/ref/javascript/date_time.texi @@ -1,4 +1,39 @@ - @node date_time @section date_time.js +@defun init_date_time +@c possibly have special index for these +@cindex dummy component +Procedure which initializes the dummy component for date-time input. +When called, finds all elements with class ``date-time'', and makes +them date-time inputs. + +@c <input type='date-time'/> + +The expected HTML form is +@example +<div class="date-time" name="@var{name}"> + <input type="date"/> + <input type="time"/> +</div> +@end example + +Each date-time gets the following fields: + +@defivar date_time value +The current date-time value as a string, +on the form @code{YYYY-mm-ddTHH:MM[:SS]} +(@code{SS} if the underlying time input has it). + +A new date-time can also be set to the field, the same format as above +is expected. +@end defivar + +@defivar date_time name +The ``name'' field of the date-time input. Since @code{name} note that +this is an addition, since name is actually invalid on non-input +components. We nevertheless use it here since we are emulating an +input element. +@end defivar + +@end defun |