Liking cljdoc? Tell your friends :D

app.components.x-command-palette.model


attr-close-on-escapecljs


attr-close-on-scrimcljs


attr-disabledcljs


attr-dismissiblecljs


attr-empty-textcljs


attr-labelcljs


attr-modalcljs


attr-no-scrimcljs


attr-opencljs


attr-placeholdercljs


attr-portalcljs


default-empty-textcljs


default-placeholdercljs


event-closecljs


event-close-requestcljs


event-opencljs


event-open-requestcljs


event-query-changecljs


event-schemacljs


event-selectcljs


event-select-requestcljs


filter-itemscljs

(filter-items items query)

Filter items by query string. Each space-separated token must appear in the item's search-str. Returns {:visible [...] :groups #{...}}.

Filter items by query string. Each space-separated token must appear
in the item's search-str. Returns {:visible [...] :groups #{...}}.
raw docstring

next-active-idxcljs

(next-active-idx visible active-idx)

Advance active-idx forward, wrapping, skipping disabled items.

Advance active-idx forward, wrapping, skipping disabled items.
raw docstring

normalizecljs

(normalize {:keys [open-present? modal-raw dismissible-raw disabled-raw
                   no-scrim-raw close-on-scrim-raw close-on-escape-raw label-raw
                   placeholder-raw empty-text-raw portal-raw]})

Canonicalize raw attr strings to a stable model map.

Canonicalize raw attr strings to a stable model map.
raw docstring

normalize-itemscljs

(normalize-items items)

Takes a JS array of item objects and returns a ClojureScript vector of normalized maps. Each item receives: :id :label :group :value :icon :disabled? :search-str.

Takes a JS array of item objects and returns a ClojureScript vector of
normalized maps. Each item receives: :id :label :group :value :icon
:disabled? :search-str.
raw docstring

normalize-strcljs

(normalize-str s)

Trim and return nil if empty.

Trim and return nil if empty.
raw docstring

observed-attributescljs


parse-bool-attrcljs

(parse-bool-attr s)

Returns true if attr string is non-nil and not "false".

Returns true if attr string is non-nil and not "false".
raw docstring

parse-bool-default-truecljs

(parse-bool-default-true s)

nil → true, "false" → false, anything else → true.

nil → true, "false" → false, anything else → true.
raw docstring

prev-active-idxcljs

(prev-active-idx visible active-idx)

Advance active-idx backward, wrapping, skipping disabled items.

Advance active-idx backward, wrapping, skipping disabled items.
raw docstring

property-apicljs


tag-namecljs

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