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.
The autocomplete element to be using goog.ac and built-in components
The autocomplete element to be using goog.ac and built-in components
(_render data ac-args)
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
`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
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
`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
(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`
(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
(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`
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close