Liking cljdoc? Tell your friends :D

app.components.x-command-palette.model


attr-close-on-escapecljs

source

attr-close-on-scrimcljs

source

attr-disabledcljs

source

attr-dismissiblecljs

source

attr-empty-textcljs

source

attr-labelcljs

source

attr-modalcljs

source

attr-no-scrimcljs

source

attr-opencljs

source

attr-placeholdercljs

source

attr-portalcljs

source

default-empty-textcljs

source

default-placeholdercljs

source

event-closecljs

source

event-close-requestcljs

source

event-opencljs

source

event-open-requestcljs

source

event-query-changecljs

source

event-schemacljs

source

event-selectcljs

source

event-select-requestcljs

source

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 #{...}}.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw docstring

normalize-strcljs

(normalize-str s)

Trim and return nil if empty.

Trim and return nil if empty.
sourceraw docstring

observed-attributescljs

source

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".
sourceraw docstring

parse-bool-default-truecljs

(parse-bool-default-true s)

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

nil → true, "false" → false, anything else → true.
sourceraw 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.
sourceraw docstring

property-apicljs

source

tag-namecljs

source

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