Liking cljdoc? Tell your friends :D

baredom.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-filtercljs

source

attr-labelcljs

source

attr-modalcljs

source

attr-no-scrimcljs

source

attr-opencljs

source

attr-placeholdercljs

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-defaultcljs

source

filter-itemscljs

(filter-items items query filter-mode)

The items that match query in filter-mode. In the default mode, each word of the query must appear in the search text of an item. In the mode none, every item matches.

The items that match `query` in `filter-mode`. In the default mode, each word of the query
must appear in the search text of an item. In the mode `none`, every item matches.
sourceraw docstring

filter-nonecljs

source

filter-valuescljs

source

header-key?cljs

(header-key? entry-key)

True when entry-key is the key of a group header.

True when `entry-key` is the key of a group header.
sourceraw docstring

method-apicljs

source

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 filter-raw]})

Canonicalize raw attr strings to a stable model map.

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

normalize-filtercljs

(normalize-filter raw)

The filter mode for a raw filter attribute. An unknown value gives the default.

The filter mode for a raw `filter` attribute. An unknown value gives the default.
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

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

shown-listcljs

(shown-list items {:keys [query active-idx filter-mode]})

What the list shows for the normalized items that match :query in :filter-mode: :entries, the group headers and the items in order, each with its key and the text of what it shows, and :active-id, the id of the active item, or nil for an empty list. The key of an item is made of its id, and the key of a header of the id of the item it leads.

What the list shows for the normalized `items` that match `:query` in `:filter-mode`:
`:entries`, the group headers and the items in order, each with its key and the text of what
it shows, and `:active-id`, the id of the active item, or nil for an empty list. The key of an
item is made of its id, and the key of a header of the id of the item it leads.
sourceraw docstring

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