Liking cljdoc? Tell your friends :D

baredom.components.x-file-upload.model


attr-acceptcljs

source

attr-disabledcljs

source

attr-max-filescljs

source

attr-max-sizecljs

source

attr-multiplecljs

source

attr-namecljs

source

attr-requiredcljs

source

event-removecljs

source

event-schemacljs

source

event-selectcljs

source

file-is-image?cljs

(file-is-image? file)

Returns true if the file's MIME type starts with image/.

Returns true if the file's MIME type starts with image/.
sourceraw docstring

format-file-sizecljs

(format-file-size bytes)

Formats bytes into human-readable string.

Formats bytes into human-readable string.
sourceraw docstring

matches-accept?cljs

(matches-accept? file accept-str)

Returns true if file matches the accept filter string. Accept format: comma-separated MIME types, wildcards (image/*), or extensions (.pdf). Returns true when accept is nil or empty (no filter).

Returns true if file matches the accept filter string.
Accept format: comma-separated MIME types, wildcards (image/*), or extensions (.pdf).
Returns true when accept is nil or empty (no filter).
sourceraw docstring

msg-drop-herecljs

source

normalizecljs

(normalize {:keys [accept-raw multiple-present? max-size-raw max-files-raw
                   disabled-present? required-present? name-raw]})

Derives a complete view-model map from raw attribute values.

Derives a complete view-model map from raw attribute values.
sourceraw docstring

observed-attributescljs

source

parse-positive-intcljs

(parse-positive-int s)

Parses string to positive integer, returns nil on failure.

Parses string to positive integer, returns nil on failure.
sourceraw docstring

property-apicljs

source

tag-namecljs

source

validate-filecljs

(validate-file file accept-str max-size)

Validates a single file. Returns {:valid? bool :reason string-or-nil}.

Validates a single file. Returns {:valid? bool :reason string-or-nil}.
sourceraw docstring

validate-filescljs

(validate-files files accept-str max-size max-files current-count)

Validates a batch of files. Returns {:accepted [...] :rejected [{:file :reason}]}. Enforces max-files limit based on current-count.

Validates a batch of files. Returns {:accepted [...] :rejected [{:file :reason}]}.
Enforces max-files limit based on current-count.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close