aboutsummaryrefslogtreecommitdiff
path: root/doc/frontend.org
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-11-20 23:01:32 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-11-20 23:01:32 +0100
commit1b5ff103f589140473068fd83340b0cc443fb420 (patch)
treec90b3e2ae018df1f51ff87a755718581ca0254b1 /doc/frontend.org
parentStart looking into generalized input-list. (diff)
downloadcalp-1b5ff103f589140473068fd83340b0cc443fb420.tar.gz
calp-1b5ff103f589140473068fd83340b0cc443fb420.tar.xz
Work on templetazing js.
Diffstat (limited to 'doc/frontend.org')
-rw-r--r--doc/frontend.org24
1 files changed, 24 insertions, 0 deletions
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 =<input/>= 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=