aboutsummaryrefslogtreecommitdiff
path: root/doc/ref
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-07-21 16:04:17 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-07-21 16:04:17 +0200
commitfaf9245e35f865c604447e5ff84a1d900ac77fd8 (patch)
tree7c1ee371a1d8d15022ab429671e6d935daaad2bf /doc/ref
parentAdd read-file. (diff)
parentAdd script to generate graphviz output from peg deffinitions. (diff)
downloadcalp-faf9245e35f865c604447e5ff84a1d900ac77fd8.tar.gz
calp-faf9245e35f865c604447e5ff84a1d900ac77fd8.tar.xz
Merge call-with-tmpfile and diffs for testrunner.
Merge branch 'next' into c-parser
Diffstat (limited to 'doc/ref')
-rw-r--r--doc/ref/javascript/formatters.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/ref/javascript/formatters.texi b/doc/ref/javascript/formatters.texi
index 71394b39..a3086aa9 100644
--- a/doc/ref/javascript/formatters.texi
+++ b/doc/ref/javascript/formatters.texi
@@ -4,6 +4,12 @@
Formatting procedures used by some components.
@c TODO can we have a backref of every node containing @ref{formatters-proc}?
+@deftypefun void format(targetElement:HTMLElement, data:VEvent, key:string)
+Checks if a specific formatter exists for the given key, and executes
+it.
+Defaults to 'default', and also runs that if the regular formatter throws.
+@end deftypefun
+
@deftypevar {Map<string, (e:HTMLElement, d:VEvent, s:any) => void>} formatters
@anchor{formatters-proc}