(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
(autocomplete-contents-list this
results
selected
scroll-wrapper-el
{:keys [item->key] :as opts})
(autocomplete-contents-top this
results
selected
scroll-wrapper-el
{:keys [on-create no-results-text] :as opts})
(autocomplete-contents-wrapper parent _ container-state _ _ _ _)
(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.
(create-new-item search selected scroll-wrapper-el {:keys [on-create] :as opts})
(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})
(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})
(focus-input this)
Focus the input element if autocomplete is open.
Focus the input element if autocomplete is open.
(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
(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.
(update-search this
v
{:keys [->query debounce-timeout items get-items] :as opts})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close