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/script.texi | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 doc/ref/javascript/script.texi (limited to 'doc/ref/javascript/script.texi') diff --git a/doc/ref/javascript/script.texi b/doc/ref/javascript/script.texi new file mode 100644 index 00000000..ea3e93ce --- /dev/null +++ b/doc/ref/javascript/script.texi @@ -0,0 +1,58 @@ + +@node script +@section script.js + +@dfn{Main} for my javascript, and also currently dumping ground for stuff. + +@deftp {class} EventCreator + +@defmethod EventCreator create_empty_event +@end defmethod + +@defmethod EventCreator create_event_down intended_target +@end defmethod + +@defmethod EventCreator create_event_move pos_in [round=1] [wide_element=false] +@end defmethod + +@defmethod EventCreator create_event_finisher callback +@end defmethod + +@end deftp + +@defun place_in_edit_mode event +@end defun + +@c window.onload is here in source file + +@defun get_property event field default_value +Returns the @emph{value} slot of given field in @var{event}, creating it if needed. + +@itemize +@item +@var{el}: the event to work on + +@item +@var{field}: name of the field + +@item +@var{default_value}: default value when creating + +@item +@var{bind_to_ical} should this property be added to the icalendar subtree? +@end itemize +@end defun + +@defun bind_properties el [wide_event=false] + Properties are icalendar properties. + + p['name'] to get and set value (also updates any connected slots) + + p['_value_name'] for raw value + p['_slot_name'] for connected slots, Vector of pairs, where the + car should be a reference to the slot, and the + cdr a procedure which takes a slot and a value + and binds the value to the slot. +@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/script.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/ref/javascript/script.texi') diff --git a/doc/ref/javascript/script.texi b/doc/ref/javascript/script.texi index ea3e93ce..fbb8baa4 100644 --- a/doc/ref/javascript/script.texi +++ b/doc/ref/javascript/script.texi @@ -1,6 +1,6 @@ @node script -@section script.js +@subsection script.js @dfn{Main} for my javascript, and also currently dumping ground for stuff. -- cgit v1.2.3 From e968ccd55b59a36d6f29eaa2beeee9ec8e3fdb7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 13 Jan 2021 01:26:06 +0100 Subject: Wrote binders.texi. --- doc/ref/javascript/script.texi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/ref/javascript/script.texi') diff --git a/doc/ref/javascript/script.texi b/doc/ref/javascript/script.texi index fbb8baa4..a60343e4 100644 --- a/doc/ref/javascript/script.texi +++ b/doc/ref/javascript/script.texi @@ -44,6 +44,8 @@ Returns the @emph{value} slot of given field in @var{event}, creating it if need @end defun @defun bind_properties el [wide_event=false] +@anchor{bind_properties} +@ref{binders} Properties are icalendar properties. p['name'] to get and set value (also updates any connected slots) -- cgit v1.2.3