(filter-options options query)Filters options by case-insensitive substring match on label. Returns all options when query is nil or empty.
Filters options by case-insensitive substring match on label. Returns all options when query is nil or empty.
(find-option-by-value options value)Returns the first option map where :value matches, or nil.
Returns the first option map where :value matches, or nil.
(highlight-match label query)Splits label around the first case-insensitive match of query. Returns {:before :match :after} or nil if no match.
Splits label around the first case-insensitive match of query.
Returns {:before :match :after} or nil if no match.(next-active-idx n active-idx)Advance active-idx forward, wrapping.
Advance active-idx forward, wrapping.
(normalize {:keys [value-raw placeholder-raw name-raw disabled-present?
required-present? open-present? placement-raw]})Derives a complete view-model map from raw attribute presence/values.
Derives a complete view-model map from raw attribute presence/values.
(normalize-placement s)Normalizes raw placement string. Falls back to default-placement if invalid or nil.
Normalizes raw placement string. Falls back to default-placement if invalid or nil.
(prev-active-idx n active-idx)Advance active-idx backward, wrapping.
Advance active-idx backward, wrapping.
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 |