Liking cljdoc? Tell your friends :D

reformation.autocomplete

clj

Autocomplete is implemented in the cljs; this is here for compiler and docs.

Autocomplete is implemented in the cljs; this is here for compiler and docs.
cljs

The autocomplete element to be using goog.ac and built-in components

The autocomplete element to be using goog.ac and built-in components
raw docstring

_renderclj/s≠

(_render data ac-args)
clj

data is a vector of maps of the approrpriate data

ac-args is a map containing information used for the dom input, and the goog renderer, matcher, and input-handler. It may have keys :data-subscription :input-id :separators :literals :multi? :throttle-time :fuzzy? :display-name :val-key

Note that the :data-subscription is needed for the component-did-update React lifecycle. :update-fn includes will receive the goog event

Consulting https://github.com/google/closure-library/blob/34fcddbda216bb338b2e631b988eb52ed4fdf025/closure/goog/ui/ac/ac.js#L31

`data` is a vector of maps of the approrpriate data

`ac-args` is a map containing information used for the dom input, and the goog renderer, matcher, and input-handler. It may have keys
:data-subscription
:input-id
:separators
:literals
:multi?
:throttle-time
:fuzzy?
:display-name
:val-key

Note that the `:data-subscription` is needed for the `component-did-update` React lifecycle.
`:update-fn` includes will receive the goog event

Consulting https://github.com/google/closure-library/blob/34fcddbda216bb338b2e631b988eb52ed4fdf025/closure/goog/ui/ac/ac.js#L31
cljs

data is a vector of maps of the approrpriate data

ac-args is a map containing information used for the dom input, and the goog renderer, matcher, and input-handler. It may have keys :data-subscription :input-id :separators :literals :multi? :throttle-time :fuzzy? :display-name :val-key

it is merged with the fn-map-with-valpath provided by reformation.

Note that the :data-subscription is needed for the component-did-update React lifecycle. :update-fn includes will receive the goog event

Consulting https://github.com/google/closure-library/blob/34fcddbda216bb338b2e631b988eb52ed4fdf025/closure/goog/ui/ac/ac.js#L31

`data` is a vector of maps of the approrpriate data

`ac-args` is a map containing information used for the dom input, and the goog renderer, matcher, and input-handler. It may have keys
:data-subscription
:input-id
:separators
:literals
:multi?
:throttle-time
:fuzzy?
:display-name
:val-key

it is merged with the fn-map-with-valpath provided by reformation.

Note that the `:data-subscription` is needed for the `component-did-update` React lifecycle.
`:update-fn` includes will receive the goog event

Consulting https://github.com/google/closure-library/blob/34fcddbda216bb338b2e631b988eb52ed4fdf025/closure/goog/ui/ac/ac.js#L31
source (clj)source (cljs)raw docstring

autocompleteclj/s

(autocomplete fn-map-with-path opt-map)

The entry-function for reformation. opt-map is expected to have :autocomplete-args

The entry-function for reformation. `opt-map` is expected to have `:autocomplete-args`
source (clj)source (cljs)raw docstring

create-ac-update-fncljs

(create-ac-update-fn UPDATE valpath val-key)

Renders the appropriate function to be executed on a goog listener event, extracting the value

Renders the appropriate function to be executed on a goog listener event, extracting the value
sourceraw docstring

listening-to-me!cljs

(listening-to-me! auto-complete update-fn)

Set a goog.event UPDATE listener on dom item auto-complete that will perform update-fn

Set a goog.event UPDATE listener on dom item `auto-complete` that will perform `update-fn`
sourceraw docstring

log-eventcljs

(log-event e)

Log an incoming event

Log an incoming event
sourceraw docstring

make-data-itemscljs

(make-data-items data & [display-key])

make data items from an array of maps with at least a key :display-key

make data items from an array of maps with at least a key `:display-key`
sourceraw docstring

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

× close