(error-detail err)Build the x-copy-error CustomEvent detail object.
Build the x-copy-error CustomEvent detail object.
(normalize {:keys [text-raw from-raw from-attr-raw mode-raw disabled-present?
show-tooltip-raw tooltip-ms-raw success-message-raw
error-message-raw hotkey-raw]})Produce a normalized view-model map from raw attribute values.
Produce a normalized view-model map from raw attribute values.
(parse-bool-default-true s)nil/absent → true, "false"/"0" → false, anything else → true.
nil/absent → true, "false"/"0" → false, anything else → true.
(parse-int-pos s default-v)Parse a positive integer from s, returning default-v if not valid or not positive.
Parse a positive integer from s, returning default-v if not valid or not positive.
(parse-mode s)Returns "text" or "html", defaulting to "text".
Returns "text" or "html", defaulting to "text".
(request-detail {:keys [text from from-attr mode]})Build the x-copy-request CustomEvent detail object.
Build the x-copy-request CustomEvent detail object.
(success-detail text)Build the x-copy-success CustomEvent detail object.
Build the x-copy-success CustomEvent detail object.
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 |