From 1b5ff103f589140473068fd83340b0cc443fb420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 20 Nov 2020 23:01:32 +0100 Subject: Work on templetazing js. --- doc/frontend.org | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc/frontend.org (limited to 'doc/frontend.org') diff --git a/doc/frontend.org b/doc/frontend.org new file mode 100644 index 00000000..6887d6d3 --- /dev/null +++ b/doc/frontend.org @@ -0,0 +1,24 @@ +** Javascript "components" + +*** input-list +file:../static/input_list.js + +All elements having 'input-list' ∈ =class= + +Direct children must all have 'unit' ∈ =class= +One direct child must have 'final' ∈ =class= + +binds =get_value= on instances, by default returning the value +of all == tags joined by =,=. This can be overwritten with +- =data-joinby= :: Alternative character to join by +- =data-bindby= :: replacement for get_value + +*** Popup +Handles popup. Currently rather specific + +*** Dragable +file:../static/dragable.js + +Manually apply =bind_popup_control= to the statusbar of a floating "window". +Nothing is required from the component, but the "window" must have +'popup-container' ∈ =class= -- cgit v1.2.3