(draggable {:keys [type data on-drag] :as attrs} element)
Modifies element
to be draggable.
type
defines the type of data to transfer via drag & drop. Supports string (e.g. mimetype for exchange of files), keyword and other values working with jtk-dvlp.transit/clj->transit
. Need to match dropzone`s type to be droppable.data
defines the data to transfer via drag & drop. Supports strings and any value working with jtk-dvlp.transit/clj->transit
. Auto converts non string values to transit-json and vice versa, when type
is not a string assuming non mimetype value but clojure structures.on-drag
(optional) defines a re-frame event vector or function to dispatch / call with the data
on start draggingSee dropzone
.
Modifies `element` to be draggable. - `type` defines the type of data to transfer via drag & drop. Supports string (e.g. mimetype for exchange of files), keyword and other values working with `jtk-dvlp.transit/clj->transit`. Need to match dropzone`s type to be droppable. - `data` defines the data to transfer via drag & drop. Supports strings and any value working with `jtk-dvlp.transit/clj->transit`. Auto converts non string values to transit-json and vice versa, when `type` is not a string assuming non mimetype value but clojure structures. - `on-drag` (optional) defines a re-frame event vector or function to dispatch / call with the `data` on start dragging See `dropzone`.
(dropzone {:keys [types on-drop] :as attrs} element)
Modifies element
to function as dropzone for draggables.
types
defines the type or collection of types of data to be allowed dropping over this element / zone. Supports string, keyword and other values working with jtk-dvlp.transit/clj->transit
. Need to match draggable´s types to allow dropping.on-drop
defines a re-frame event vector or function to dispatch / call with a vector of the dropped data on dopping a draggable element.See draggable
.
Modifies `element` to function as dropzone for draggables. - `types` defines the type or collection of types of data to be allowed dropping over this element / zone. Supports string, keyword and other values working with `jtk-dvlp.transit/clj->transit`. Need to match draggable´s types to allow dropping. - `on-drop` defines a re-frame event vector or function to dispatch / call with a vector of the dropped data on dopping a draggable element. See `draggable`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close