(change-dragging event DRAGGING true?)Change the status of dragging atom, stopping propogation
Change the status of dragging atom, stopping propogation
(drag-drop event DRAGGING opt-map)Stop events and handle dropped file
Stop events and handle dropped file
(file-handler event opt-map)Handles an event of a file beign selected, getting the file from an event
and including it in the opt-map for parse-file
Handles an event of a file beign selected, getting the file from an event and including it in the `opt-map` for parse-file
(file-upload &_)Unspecified for clj
Unspecified for clj
(file-upload
{:keys [style-classes submit-text submit-fn error-text submit-button save-fn
allowed-extensions-f]
:or {submit-text "Click or Drop a File Here"}
{:keys [drag-over inactive have-file]
:or {drag-over "dragover" inactive "undragged" have-file "have-file"}}
:style-classes
:as opt-map})Generate the hiccup necessary for a file-upload area, which can be clicked or have a file dropped on it.
If no submit-button is given, it will auto-submit upon dropping using submit-fn
Generate the hiccup necessary for a file-upload area, which can be clicked or have a file dropped on it. If no `submit-button` is given, it will auto-submit upon dropping using `submit-fn`
(filelist-to-vec js-col)http://www.dotkam.com/2012/11/23/convert-html5-filelist-to-clojure-vector/
(generate-hidden-upload-input opt-map)Generate a hidden input prompt for the on-click event of the drop zone
Generate a hidden input prompt for the on-click event of the drop zone
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |