Liking cljdoc? Tell your friends :D

reformation.fileupload


change-draggingcljs

(change-dragging event DRAGGING true?)

Change the status of dragging atom, stopping propogation

Change the status of dragging atom, stopping propogation
sourceraw docstring

drag-dropcljs

(drag-drop event DRAGGING opt-map)

Stop events and handle dropped file

Stop events and handle dropped file
sourceraw docstring

file-handlercljs

(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
sourceraw docstring

file-uploadclj/s≠

clj
(file-upload &_)

Unspecified for clj

Unspecified for clj
cljs
(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`
source (clj)source (cljs)raw docstring

filelist-to-veccljs

(filelist-to-vec js-col)
http://www.dotkam.com/2012/11/23/convert-html5-filelist-to-clojure-vector/
sourceraw docstring

generate-hidden-upload-inputcljs

(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
sourceraw docstring

parse-filecljs

(parse-file {:keys [file allowed-extensions-f save-fn bad-ext-fn]})
source

round-to-2cljs

(round-to-2 num)

round to two decimals

round to two decimals
sourceraw docstring

size-formatcljs

(size-format size)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close