aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-07-07 20:29:11 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-07-07 21:14:09 +0200
commit6c44e85b820902a4d7bb640324d5ed927e414bcb (patch)
tree4fbf828cf87b65d2aeb52d5038d46f40d548f2c0 /doc
parentImport missing car+cdr. (diff)
downloadcalp-6c44e85b820902a4d7bb640324d5ed927e414bcb.tar.gz
calp-6c44e85b820902a4d7bb640324d5ed927e414bcb.tar.xz
Extend javascript formatters to also take VEvent.
Diffstat (limited to 'doc')
-rw-r--r--doc/ref/javascript/formatters.texi9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/ref/javascript/formatters.texi b/doc/ref/javascript/formatters.texi
index 16a988c4..71394b39 100644
--- a/doc/ref/javascript/formatters.texi
+++ b/doc/ref/javascript/formatters.texi
@@ -4,13 +4,14 @@
Formatting procedures used by some components.
@c TODO can we have a backref of every node containing @ref{formatters-proc}?
-@deftypevar {Map<string, (e:HTMLElement, s:any) => void>} formatters
+@deftypevar {Map<string, (e:HTMLElement, d:VEvent, s:any) => void>} formatters
@anchor{formatters-proc}
-Each procedure takes two arguments. The HTML-element which contents
-should be replaced, along with the target value, as returned by @ref{VEvent.getProperty}.
+Each procedure takes three arguments. The HTML-element which contents
+should be replaced, the VEvent containing all data, and the target
+value, as returned by @ref{VEvent.getProperty}.
@end deftypevar
-@deftypevr {Window Value} {Map<string, (e:HTMLElement, s:string) => void>} formatters
+@deftypevr {Window Value} {Map<string, (e:HTMLElement, d:VEvent, s:string) => void>} formatters
Same object as @xref{formatters-proc}. Provided for @xref{user-additions.js}.
@end deftypevr