ui.ac

Classes

goog.ui.ac.ArrayMatcher
Basic class for matching words in an array
goog.ui.ac.AutoComplete
This is the central manager class for an AutoComplete instance. The matcher can specify disabled rows that should not be hilited or selected by implementing isRowDisabled(row):boolean for each autocomplete row. No row will be considered disabled if this method is not implemented.
goog.ui.ac.CachingMatcher
A matcher which wraps another (typically slow) matcher and keeps a client-side cache of the results. For instance, you can use this to wrap a RemoteArrayMatcher to hide the latency of the underlying matcher having to make ajax request. Objects in the cache are deduped on their stringified forms. Note - when the user types a character, they will instantly get a set of local results, and then some time later, the results from the server will show up.
goog.ui.ac.InputHandler
Class for managing the interaction between an auto-complete object and a text-input or textarea.
goog.ui.ac.Remote
Factory class for building a remote autocomplete widget that autocompletes an inputbox or text area from a data array provided via ajax.
goog.ui.ac.RemoteArrayMatcher
An array matcher that requests matches via ajax.
goog.ui.ac.RenderOptions
A simple class that contains options for rendering a set of autocomplete matches. Used as an optional argument in the callback from the matcher.
goog.ui.ac.Renderer
Class for rendering the results of an auto-complete in a drop down list.
goog.ui.ac.RichInputHandler
Class for managing the interaction between an autocomplete object and a text-input or textarea.
goog.ui.ac.RichRemote
Factory class to create a rich autocomplete widget that autocompletes an inputbox or textarea from data provided via ajax. The server returns a complex data structure that is used with client-side javascript functions to render the results.
goog.ui.ac.RichRemoteArrayMatcher
An array matcher that requests rich matches via ajax and converts them into rich rows.

Public Protected Private

Global Functions

goog.ui.ac.createSimpleAutoComplete(datainputopt_multiopt_useSimilar) !goog.ui.ac.AutoComplete
Factory function for building a basic autocomplete widget that autocompletes an inputbox or text area from a data array.
Arguments:
data : Array
Data array.
input : Element
Input element or text area.
opt_multi : boolean=
Whether to allow multiple entries separated with semi-colons or commas.
opt_useSimilar : boolean=
use similar matches. e.g. "gost" => "ghost".
Returns: !goog.ui.ac.AutoComplete  A new autocomplete object.
code »

Package ui

Package Reference