Liking cljdoc? Tell your friends :D

komponentit.autocomplete


+create-item-index+cljs

source

autocompletecljs

(autocomplete opts)

:value - (required) IDeref or value :on-change - (required) Function [item] :on-blur - Input :on-blur :on-create - Create a new item. Function [value] :items :max-results :value->search :value->text :item->key :item->value :item-removable? - predicate function to determine if item is removable :term-match-fn :search-fields :min-search-length - Required number of characters in search string before results are filtered. :->query :groups :filter-current-out? :debounce-timeout

Localization :placeholder :no-results-text

Style :ctrl-class :disabled

:value - (required) IDeref or value
:on-change - (required) Function [item]
:on-blur - Input :on-blur
:on-create - Create a new item. Function [value]
:items
:max-results
:value->search
:value->text
:item->key
:item->value
:item-removable? - predicate function to determine if item is removable
:term-match-fn
:search-fields
:min-search-length - Required number of characters in search string before results are filtered.
:->query
:groups
:filter-current-out?
:debounce-timeout

Localization
:placeholder
:no-results-text

Style
:ctrl-class
:disabled
sourceraw docstring

autocomplete-clearcljs

(autocomplete-clear this {:keys [disabled value] :as opts})
source

autocomplete-contents-listcljs

(autocomplete-contents-list this
                            results
                            selected
                            scroll-wrapper-el
                            {:keys [item->key] :as opts})
source

autocomplete-contents-topcljs

(autocomplete-contents-top this
                           results
                           selected
                           scroll-wrapper-el
                           {:keys [on-create no-results-text] :as opts})
source

autocomplete-contents-wrappercljs

(autocomplete-contents-wrapper parent _ container-state _ _ _ _)
source

autocomplete-inputcljs

(autocomplete-input opts text this)
source

blurcljs

(blur this opts e)
source

call-clearcljs

(call-clear {:keys [on-change value] :as opts} this)
source

call-on-changecljs

(call-on-change this opts e)
source

call-on-createcljs

(call-on-create {:keys [on-create] :as opts} this s)
source

call-on-removecljs

(call-on-remove {:keys [on-remove] :as opts} this v)
source

choice-item-wrappercljs

(choice-item-wrapper _)
source

clickcljs

(click this e)
source

closecljs

(close this opts)
source

create-matcherclj/smacro

(create-matcher fields)
source

create-matcher*cljs

(create-matcher* fields)

Fields can be either collection containing multiple key for map, or a single key. If collection is given, returned function will go through keys using some.

Fields can be either collection containing multiple key for map,
or a single key.
If collection is given, returned function will go through keys using some.
sourceraw docstring

create-new-itemcljs

(create-new-item search selected scroll-wrapper-el {:keys [on-create] :as opts})
source

default->querycljs

(default->query search)
source

filter-resultscljs

(filter-results this opts)
source

filter-results'cljs

(filter-results' n
                 search?
                 level
                 prepared-items
                 query
                 selected
                 {:keys [value term-match-fn multiple? filter-current-out?
                         item->text item->value item->key item->items
                         min-search-length max-results]
                  :as opts})
source

filter-results-topcljs

(filter-results-top prepared-items
                    query
                    selected
                    {:keys [value term-match-fn multiple? filter-current-out?
                            item->text item->value item->key min-search-length
                            max-results]
                     :as opts})
source

find-by-selectioncljs

(find-by-selection results selected-index)
source

focuscljs

(focus this search text e)
source

focus-inputcljs

(focus-input this)

Focus the input element if autocomplete is open.

Focus the input element if autocomplete is open.
sourceraw docstring

handle-backspacecljs

(handle-backspace this {:keys [on-change] :as opts} e)
source

handle-entercljs

(handle-enter this opts e)
source

key-downcljs

(key-down this text opts e)
source

limit-selectioncljs

(limit-selection n selected f search {:keys [on-create]})
source

multiple-autocompletecljs

(multiple-autocomplete opts)

:value - (required) IDeref or value :on-change - (required) Function [item] :on-remove - Called when item is removed [value] :on-blur - Input :on-blur. Might be useful for form pristine handling. :items :max-results :value->search :value->text :item->key :item->value :item-removable? - predicate function to determine if item is non-removable :term-match-fn :search-fields :min-search-length - Required number of characters in search string before results are filtered. :->query :groups :filter-current-out? :debounce-timeout

Localization :placeholder :no-results-text

Style :ctrl-class :disabled

:value - (required) IDeref or value
:on-change - (required) Function [item]
:on-remove - Called when item is removed [value]
:on-blur - Input :on-blur. Might be useful for form pristine handling.
:items
:max-results
:value->search
:value->text
:item->key
:item->value
:item-removable? - predicate function to determine if item is non-removable
:term-match-fn
:search-fields
:min-search-length - Required number of characters in search string before results are filtered.
:->query
:groups
:filter-current-out?
:debounce-timeout

Localization
:placeholder
:no-results-text

Style
:ctrl-class
:disabled
sourceraw docstring

opencljs

(open this text)
source

prepare-itemscljs

(prepare-items items {:keys [prepare-xform] :as opts})
source

query-match?cljs

(query-match? term-match-fn item query)
source

(reset-search this {:keys [items get-items] :as opts})
source

select-valuecljs

(select-value {:keys [on-change] :as opts} this v)
source

selected-itemscljs

(selected-items opts this)
source

sub-query-match?cljs

(sub-query-match? term-match-fn item query)
source

update-el-dimensionscljs

(update-el-dimensions this)

Save the container dimensions to component state. Container contains the input and dropdown.

Save the container dimensions to component state.
Container contains the input and dropdown.
sourceraw docstring

(update-search this
               v
               {:keys [->query debounce-timeout items get-items] :as opts})
source

update-selectioncljs

(update-selection this f opts e)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close