reformation.autocomplete
The autocomplete element to be using goog.ac and built-in components
_render
(_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
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
(autocomplete fn-map-with-path opt-map)
The entry-function for reformation. `opt-map` is expected to have `:autocomplete-args`
create-ac-update-fn
(create-ac-update-fn UPDATE valpath val-key)
Renders the appropriate function to be executed on a goog listener event, extracting the value
listening-to-me!
(listening-to-me! auto-complete update-fn)
Set a goog.event UPDATE listener on dom item `auto-complete` that will perform `update-fn`
make-data-items
(make-data-items data & [display-key])
make data items from an array of maps with at least a key `:display-key`