diff options
Diffstat (limited to '')
-rw-r--r-- | doc/ref/javascript/draggable.texi | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/ref/javascript/draggable.texi b/doc/ref/javascript/draggable.texi new file mode 100644 index 00000000..d1851ec4 --- /dev/null +++ b/doc/ref/javascript/draggable.texi @@ -0,0 +1,24 @@ +@node dragable +@subsection dragable.js + +@c TODO This text is just yanked from the old org file, along with the +@c source codes header. It should probably be rewritten. + +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= + +@defun bind_popup_control nav +Apply to a given component to make it draggable. +Drag area (usually a title bar) should be be the only argument. +It is REQUIRED that the object which should be moved have the class +@code{popup-container}. + +@example +<div class='popup-container'> + ... + <nav /> + ... +</div> +@end example +@end defun |