@node formatters @subsection formatters 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 void>} formatters @anchor{formatters-proc} 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 void>} formatters Same object as @xref{formatters-proc}. Provided for @xref{user-additions.js}. @end deftypevr