diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-20 22:09:57 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-12-20 22:09:57 +0100 |
commit | d75ebbab2a414fe1a9a09d703a3bc7be782f1f1e (patch) | |
tree | 0de4f1c17afd6fbefbafc3a0a8a91bc85cb30355 /doc/ref/javascript/input_list.texi | |
parent | Document testrunner syntax. (diff) | |
parent | Documentation updates for util. (diff) | |
download | calp-d75ebbab2a414fe1a9a09d703a3bc7be782f1f1e.tar.gz calp-d75ebbab2a414fe1a9a09d703a3bc7be782f1f1e.tar.xz |
Merge Javascript rewrite.
Diffstat (limited to 'doc/ref/javascript/input_list.texi')
-rw-r--r-- | doc/ref/javascript/input_list.texi | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/doc/ref/javascript/input_list.texi b/doc/ref/javascript/input_list.texi deleted file mode 100644 index 65db81a4..00000000 --- a/doc/ref/javascript/input_list.texi +++ /dev/null @@ -1,51 +0,0 @@ -@node input_list -@subsection 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 =<input/>= 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) - - <div class="input-list"> - <div class="unit"><input/></div> - <div class="unit final"><input/></div> - </div> - -@defun init_input_list -@end defun |