(complete? value length)True when value has exactly length characters.
True when value has exactly `length` characters.
(filter-chars type-name s)Remove characters that are not allowed for the given OTP type.
Remove characters that are not allowed for the given OTP type.
(normalize {:keys [name-raw value-raw length-raw type-raw mask-present?
disabled-present? readonly-present? required-present?
autofocus-present? label-raw placeholder-raw error-raw]})Derive a complete view-model map from raw attribute values.
Derive a complete view-model map from raw attribute values.
(normalize-value type-name length raw)Filter and truncate a raw value string for the given OTP type and length.
Filter and truncate a raw value string for the given OTP type and length.
(parse-length raw)Parse the length attribute. Empty / non-numeric falls back to default-length.
Numeric values are clamped to [min-length, max-length-cap].
Parse the `length` attribute. Empty / non-numeric falls back to default-length. Numeric values are clamped to [min-length, max-length-cap].
(parse-type raw)Parse the type attribute. Unknown / nil falls back to default-type.
Parse the `type` attribute. Unknown / nil falls back to default-type.
(placeholder-char raw)Return the single-character placeholder, or empty string.
Return the single-character placeholder, or empty string.
(slot-aria-label type-name index length)Build the per-slot aria-label string.
Build the per-slot aria-label string.
(slot-inputmode type-name)Map OTP type to the slot input inputmode attribute.
Map OTP `type` to the slot input `inputmode` attribute.
(truncate s n)Trim a string to at most n characters.
Trim a string to at most `n` characters.
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 |