From 34c12d524d3a9238e174864220ab04adaf0cd7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 6 Jan 2021 01:16:11 +0100 Subject: Split javascript doc into multiple files. --- doc/ref/javascript/input_list.texi | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doc/ref/javascript/input_list.texi (limited to 'doc/ref/javascript/input_list.texi') diff --git a/doc/ref/javascript/input_list.texi b/doc/ref/javascript/input_list.texi new file mode 100644 index 00000000..bda2de83 --- /dev/null +++ b/doc/ref/javascript/input_list.texi @@ -0,0 +1,4 @@ + +@node input_list +@section input_list.js + -- cgit v1.2.3 From 341e5a65a7b36e1f70ed9e6c2ae4f5b18c083b5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 13 Jan 2021 22:47:46 +0100 Subject: Doc work. --- doc/ref/javascript/input_list.texi | 49 +++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) (limited to 'doc/ref/javascript/input_list.texi') diff --git a/doc/ref/javascript/input_list.texi b/doc/ref/javascript/input_list.texi index bda2de83..e22d4c2b 100644 --- a/doc/ref/javascript/input_list.texi +++ b/doc/ref/javascript/input_list.texi @@ -1,4 +1,51 @@ - @node input_list @section input_list.js +@cindex dummy component + +All elements with the class @code{input-list} are treated as a +collection of input fields. Uses including setting tags on calendar +entries. + +All direct children of the ``input-list'' @emph{must} have the class +@code{unit}, and one direct child @code{unit} have the class @code{final}. + +@c All elements having 'input-list' ∈ =class= + +@c Direct children must all have 'unit' ∈ =class= +@c One direct child must have 'final' ∈ =class= + +@defmethod input_list get_value + +@example +querySelectorAll('input') + .map(x => x.value) + .join(@var{joinby}) +@end example +@end defmethod + +@defivar input_list [data-]joinby + Alternative character to join by +@end defivar + +@defivar input_list [data-]bindby + replacement for get_value +@end defivar + +binds =get_value= on instances, by default returning the value +of all == tags joined by =,=. This can be overwritten with + +TODO: instead, override value? + +=addEventList('input',= is overwritten, registering the listener for all input +elements. + + + ∀ children('.input-list') => 'unit' ∈ classList(child) + +
+
+
+
+@defun init_input_list +@end defun -- cgit v1.2.3 From 3683d80b25bcecb9fe72ba336fda5d3e98459993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 9 Jan 2021 05:55:48 +0100 Subject: Move javascript doc down one level. --- doc/ref/javascript/input_list.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/ref/javascript/input_list.texi') diff --git a/doc/ref/javascript/input_list.texi b/doc/ref/javascript/input_list.texi index e22d4c2b..65db81a4 100644 --- a/doc/ref/javascript/input_list.texi +++ b/doc/ref/javascript/input_list.texi @@ -1,5 +1,5 @@ @node input_list -@section input_list.js +@subsection input_list.js @cindex dummy component All elements with the class @code{input-list} are treated as a -- cgit v1.2.3